This is a template for the users module. It contains the method of registration, login and the list of the users paginates, It also contains authentication methods with token, JWT and mailings. Mongodb was used to store user information. The code is written in ES6
- Babel: Used to compile the project, for babel plugins i use
@babel/cli
@babel/core
@babel/node
and@babel/presets-env
- Eslint: Used to check for mistakes in the source files. I personally use
prettier to check for rules so i use
eslint-config-prettier
andeslint-pluggin-prettier
to help me with this - Nodemon: to run the project as dev used usually with
babel-node
- Prettier: as a ruleset for the code
- Rimraf: it's just a helper to delete the dist folder when i'm rebuilding the project
git clone
cd login-app
npm i
To run in production mode where code is transpiled by Babel into a dist
folder and run directly in node
:
npm start
To run in development mode where code is run by babel-node via nodemon and re-transpiled any time there is a change:
npm run dev