Skip to content

vikebm/login-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for login App

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

Dev Dependencies used

  • 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 and eslint-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

Running Locally

Prerequisites

1. Clone the repo and install dependencies

git clone 
cd login-app
npm i

2. Start the server

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