Skip to content

mohammad-rammal/BookStore-API

Repository files navigation

My Image

🖤 Node.js API with Express.js - BookStore API 🖤

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

Clone the repository:

git clone https://github.com/mohammad-rammal/BookStore

Install the dependencies:

npm install

Start the server:

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

  1. Introduction to Node.js and Express.js
  2. Setting Up a RESTful API
  3. Working with MongoDB and Mongoose
  4. Implementing Authentication with JWT
  5. Creating Routes and Controllers
  6. Handling Middleware in Express
  7. Advanced Topics: Pagination, Filtering, etc.
  8. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published