You can check the explanation in my medium HERE
- MongoDb
- Node.JS
- Express.JS
- POST /login: to login and get the user's token
request json: {
"email": "[email protected]",
"password": "filedeck1"
}
- GET /authenticate: to authenticate your jwt token. To use this you need to input the token in bearer authorization
- POST /register: to register your account to database (MongoDB)
request json: {
"username":"your username",
"email":"your email",
"password":"your password"
}
- GET findUser/: change
<email>
with your email address
- clone this repository
- install all packeges
npm install
- run
node app.js