This backend APIs responsible for loading student details with pagination, and implementing server-side filtering.
Server: Express.js, Node.js, MongoDB Atlas, Cyclic(for hosting).
Tool: Postman, VS Code.
- Filtering
- Sorting.
- Searching.
- Pagination.
Clone the repository:
git clone https://github.com/RayaBasu01/StudentApi_RayaBasu.git
To deploy this project run
npm run dev
To run this project, you will need to add the following environment variables to your .env file
MONGODB_URI
Clone the project
git clone https://github.com/RayaBasu01/StudentApi_RayaBasu.git
Go to the project directory
cd my-project
Install dependencies
npm install
npm i express
npm i mongoose
npm i nodemon
Start the server
npm run dev
To obtain the URL for database connectivity from MongoDB Atlas, follow these steps:
- Go to the MongoDB Atlas website and log in to your account.
- Navigate to the "Clusters" section and select the desired cluster.
- Click on the "Connect" button for the cluster.
- Choose "Connect Your Application" to get the connection string.
- Select your driver version and copy the provided connection string.
- Replace the
<password>
placeholder in the connection string with your MongoDB user's password. - Optionally, customize the connection string with additional parameters like database name or SSL options.
- Use the modified connection string as the URL for connecting to your MongoDB Atlas database.
Ensure that you follow the appropriate security measures, such as using environment variables to store sensitive information like passwords, to protect your database credentials.
Yes, it has both free and paid version.
At first signup to Cyclic and then connect your GitHub account to it. Then select the repo and enter the Environment variables required. After that start deploying and it will be live if the folder structure and the product is fine. Click on the link and enjoy your API.
If you have any feedback, please reach out to us at raya.basu.01@gmail.com