An open API service indexing awesome lists of open source software.

https://github.com/iggredible/node-basic-auth-starter

NodeJS Starter with basic auth using JWT auth
https://github.com/iggredible/node-basic-auth-starter

basic nodejs starter

Last synced: 3 months ago
JSON representation

NodeJS Starter with basic auth using JWT auth

Awesome Lists containing this project

README

        

# NodeJS BASIC starter

Includes:
- [@babel/core](https://www.npmjs.com/package/@babel/core) for babel compiler
- [@babel/node](https://babeljs.io/docs/en/babel-node) for running ES(whatever) on local dev
- [@babel/present-env](https://babeljs.io/docs/en/babel-preset-env) for latest JS
- [nodemon](https://nodemon.io/) for automatic reload
- [dotenv](https://www.npmjs.com/package/dotenv) for secrets
- [cors](https://www.npmjs.com/package/cors) to enable [cors](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
- [body-parser](https://github.com/expressjs/body-parser) for handling requests with body

To start, `npm install`, then create `.env` folder and put `PORT=3000`, then `npm run start`