This is a comprehensive backend project developed using (MongoDB, Node.js, Express Js and JWT). The project focuses on managing user roles, book reservations, and CRUD operations.
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JWT
- View reservations for each book
- Perform CRUD operations on books
- Search books
- Lend books to users based on reservations
- Manage book returns
- Sign up and log in with Google
- Register and sign in
- Update profile
- Search books by category
- Make reservations for books
-
Clone the repository:
git clone https://github.com/yourusername/your-repo.git
-
Navigate to the project directory:
cd your-repo
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add the following environment variables:PORT=5000 MONGODB_URI=your-mongodb-uri JWT_SECRET=your-jwt-secret GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret
-
Start the server: cd into the server folder and, npm run dev
- Use Postman or any other API client to interact with the backend endpoints.
- Admin and member functionalities are differentiated by their roles.
Feel free to fork this repository and contribute by submitting a pull request. Any contributions are highly appreciated!
This project is licensed under the MIT License.
Feel free to replace the placeholders with your actual information, such as the repository link and any specific details about your project.