Welcome to the BookStore API course repository! This project serves as a comprehensive guide for building RESTful APIs using Node.js, Express.js, and MongoDB. Whether you're a beginner or looking to refine your skills, this repository provides all the resources and code examples you'll need.
🚀 Getting Started
git clone https://github.com/mohammad-rammal/BookStore
npm install
npm start
The server is running on http://localhost:5000
📂 Project Structure
├── controllers/ # Logic for handling routes and requests
├── models/ # Mongoose schemas and models
├── routes/ # API route definitions
├── middleware/ # Custom middleware functions
├── config/ # Configuration files (e.g., database connection)
├── utils/ # Utility functions
├── views/ # Views functions
├── app.js # Entry point for the application
└── README.md # Project documentation
🧠 Course Content
- Introduction to Node.js and Express.js
- Setting Up a RESTful API
- Working with MongoDB and Mongoose
- Implementing Authentication with JWT
- Creating Routes and Controllers
- Handling Middleware in Express
- Advanced Topics: Pagination, Filtering, etc.
- Security Best Practices
🛠 Features
- CRUD Operations: Complete Create, Read, Update, and Delete functionalities.
- Authentication & Authorization: Secure routes using JWT.
- Input Validation: Validate incoming data with express-validator.
- File Upload: Handle image and file uploads.
- Error Handling: Centralized error handling using custom middleware.
- Environment Variables: Manage sensitive data securely using .env files.
🔗 Connect with me on LinkedIn: Mohammad Rammal