Node.js application to get all details of youtube subscribers.
I'm a Student learning Full Stack web Development.
We'd like to thank the open-source community and the creators of Node.js, Express, and MongoDB for their valuable contributions.
We would also like to thank the contributors to this project for their valuable contributions.
Here a link of demostartion video -
- Introduction
- Features
- Tech Stack
- Prerequisites
- Installation & Run
- API Reference
- Contribute
- Contributors
- License
- Contact
- Acknowledgments
Get YouTube Subscribers is an Application that serves as a RESTful API created by using Mongodb in Node.js. It is designed to fetch all subscribers information related to YouTube channel subscribers. The primary technologies used to develop this application are Node.js and Express.js which are used to create API endpoint and manage HTTP request. Additionally, this application utilizes MongoDB as the database to store and manage subscribers data efficiently.
The following features are available in the API:
- Get an array of all subscribers in JSON format.
- Get an array of all subscribers' names and subscribed channels in JSON format.
- Get details about a particular subscriber based on their ID, including their name, subscribed channel, and subscribed date.
- Handle error cases, such as when an incorrect subscriber ID is provided or when a user accesses an unknown endpoint.
-
GET http://localhost:3000/ → The client will see the “User Homepage” which is used to verify that application is working properly.
-
GET http://localhost:3000/subscribers → When the user hit this, endpoint /subscribers, the client will get an array of all subscribers in JSON format from the database where the data is stored in local MongoDB database.
-
GET http://localhost:3000/subscribers/names → When the user hit this, endpoint /subscribers/names the client will to get an array of all subscribers in JSON format with only name and subscribed Channel fields from the database, where the data is stored in local MongoDB database.
-
GET http://localhost:3000/subscribers/:id → When the user hit this, endpoint /subscribers/:id in ID, the user needs to enter the USER’S ID which is stored in the database to get a particular user’s details like name, subscribed Channel and subscribed Date from the database, where the data is stored in local MongoDB database.
-
GET http://localhost:3000/subscribers/:id → When the client gives incorrect USER’S ID instead of correct USER’S ID (where the ID does not match) which is stored in database, the Client will get an Error message like “Subscriber doesn't exist with the given _id: sdijvrbv” in JSON format with 400 error status code.
-
GET http://localhost:3000/something → when the user hit the unwanted route which is not mentioned above (which is used to handle all other unwanted requests), they will get an error message like Route not found in JSON format with an 404 error status code.
Node.js, Express.js, MongoDB, Mongoose,React, Javascript, JSX, HTML...
For Deployment of this project we use render.
First the project is push to git and through render we connect out git. After this the deployment is so easy we set couple of terms and click for deployment.
Keep in mind during deployment put...
- build command is
node build - start command is
node app.js
Clone the project
git clone https://github.com/Usernamecopieded/YouTubeInstall dependencies
npm initStart the server
node run dev To run this project, we created a env file and add the following environment variables in .env file
MONGO_URL
PORT (optional)
If you have any questions or suggestions, feel free to reach out to us at Gmail.