REST API with Node.js, MongoDB, Mongoose, JWT, and Swagger

March 4, 2024

Github

This project is a fully functional REST API built using Node.js, MongoDB, Mongoose, JWT, and Swagger. It provides basic CRUD operations, secure authentication using JWT, data persistence with MongoDB, integration tests with Jest, and Dockerization for easy deployment. The Swagger documentation ensures clear understanding of the API endpoints.

Technologies Used

Features

Directory Structure

rest-api/
├── config/
│   └── ...
├── controllers/
│   └── ...
├── middlewares/
│   └── ...
├── models/
│   └── ...
├── routes/
│   └── v1/
│       └── ...
├── services/
│   └── ...
├── tests/
│   └── ...
├── utils/
│   └── ...
├── validations/
│   └── ...
├── app.js
└── index.js

Explanation