Skip to content
This repository has been archived by the owner on Jul 3, 2018. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.11 KB

Starter template for NODEJS

Starter template with login and registration.
Bases on mongodb

Requirements

Configuration

Configuration files are located under config dir.
See Guild https://github.com/lorenwest/node-config/wiki/Configuration-Files

Name Description
PORT The port to listen
MONGODB_URL The mongodb url
VERBOSE_LOGGING The flag if enable debug information
SMTP_PORT the smtp port
SMTP_USERNAME the smtp username
EMAIL_SENDER_ADDRESS the email sender
RESET_PASSWORD_EXPIRATION the expiration for emails, use values like 1d, 10h

Install dependencies

npm i

Running

npm run <script> Description
start Serves the app in prod mode.
dev Same as npm start, but enables nodemon for the server as well.
oauth run app on port 5000 to get social access tokens
lint Lint all .js files.
lint:fix Lint and fix all .js files. Read more on this.