A RESTful API built with Node.js and Express.js that manages courses, authors, and users.
Includes authentication, authorization, and MongoDB integration.
- Node.js
- Express.js
- MongoDB (via Mongoose)
- JWT (Authentication)
- Bcrypt (Password Hashing)
- dotenv (Config)
- JWT-based user authentication (Login/Register)
- Role-based access control (admin, user)
- CRUD operations for:
- Courses
- Authors
- Middleware for:
- Auth
- Authorization
- MongoDB integration with schema validation
- Node.js (v14+)
- MongoDB (local or MongoDB Atlas)
git clone https://github.com/samerben/API-NodeJS.git
npm install
npm run dev