$ git clone https://github.com/Yet-Another-Paste-Bin/yapb_backend_server
$ npm i
LICENSE
package.json
config.js [ENV Vairables]
controllers/
auth.controller.js
bin.controller.js
routes/
auth.route.js
bin.route.js
middlewares/
bin_checker.js
error_handler.js
jwt_auth.js
ratelimit_middleware.js
signup_middleware.js
models/
bin.model.js
user.model.js
// in the root level
$ export SECRET=YOUR_JWT_AUTH_SECRET
$ export DB_URL=YOUR_MONGODB_CONNECTION_URI
$ export NODE_ENV=YOUR_NODE_ENVIORNMENT
$ export REDIS_DB_URI=YOUR_REDIS_DB_CONNECTION_URI
$ npm i // npm install pacakges
$ npm run dev // run it in development mode locally
$ npm i // npm install pacakges
$ npm run start // run it in production mode
- bcryptjs: ^2.4.3
- body-parser: ^1.19.0
- cors: ^2.8.5
- cross-env: ^7.0.3
- express: ^4.17.1
- express-rate-limit: ^5.2.6
- helmet: ^4.6.0
- jsonwebtoken: ^8.5.1
- mongoose: ^5.12.2
- morgan: ^1.10.0
- rate-limit-redis: ^2.1.0
- redis : 3.0.2
👤 Tejasvp25
- Website: http://thetejasvp25.tech
- Github: @Tejasvp25
- Gmail ID: [email protected]
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Add Support for Bin Sharing