This Node.js API project encompasses User Authentication with JWT, a Simple CRUD API, and a File Upload and Download API. It provides endpoints for registering and authenticating users, performing CRUD operations on resources, and uploading/downloading files.
- Node.js: Runtime environment for server-side JavaScript.
- Express.js: Web framework for building RESTful APIs in Node.js.
- MongoDB: NoSQL database for storing user data and resource details.
- Mongoose: MongoDB object modeling for Node.js.
- JSON Web Tokens (JWT): Used for user authentication and authorization.
- Swagger: API documentation using the OpenAPI Specification.
- Clone the repository:
https://github.com/Duyoofmp/userAuthAndFile
- Install dependencies:
npm install
-
Start the server: change directory to src folder then:
node app.js
-
Access the Swagger documentation by navigating to http://localhost:3000/api-docs in your web browser.