1.0.5 • Published 5 months ago
mg-start-node v1.0.5
5 min Backend | Node.js JWT Authentication Project
Description
This is a Node.js project demonstrating JWT (JSON Web Token) authentication.
Table of Contents
Installation
Follow these steps to set up and run the project on your local machine:
Clone the Repository:
git clone https://github.com/Aman-Sharmaa/start-node.git cd start-node
Create ENV (.env) in the root and replace variable:
mongo db https://www.mongodb.com/
After completing these steps.
npm install
After completing these steps.
npm run dev
Now check your running application in localhost.
http://localhost:8080
**POST Register /api/v1/register Body: { "email": "example", "password": "securepassword" }
**POST Login /api/v1/login Body: { "email": "example", "password": "securepassword" }
**GET User /api/v1/user
- Open your web browser and go to
http://localhost:8080
(or another port if specified) to see the application running.
Usage
Contributing
If you'd like to contribute to the project, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and submit a pull request.
Please make sure to follow the Contributor Covenant Code of Conduct.
License
This project is licensed under the MIT License.