- JWTs & refresh tokens
- Node.js
- TypeScript
- MongoDB with Mongoose
expressjs-server/ contains the express server code
└── config # _default configurations (port,db,token ttl , privatekey)
└── src
├── controller # Controller logic goes here
├── middleware # Middleware
├── service # Db query logic goes here
├── modles
| └── # contain model to database
├── utils # contains wrapper functions to sign and verify our jwt
└── app.ts # default entry point
To get a local copy up and running follow these simple example steps.
- clone repo either through ssh / https
ssh
git clone git@github.com:Gedewon/express-API.git
https
git clone git@github.com:Gedewon/express-API.git
- the change directory to /Todo.git
cd express-API
- install node dependency and open index.html with live server
yarn && yarn dev
- then paly around with this http endpoint don't forget to replace token with your own generated onces after login
👤 Gedewon
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!