Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 717 Bytes

File metadata and controls

39 lines (29 loc) · 717 Bytes

ExpressJS with MongoDB and local auth

Intro

This is the barebones ExpressJS with Mongo database and local auth.

It's mostly from John Smilga's Udmey course with only a few minor alterations.

John Smilga's NodeJS Tutorial and Projects Course

Config

To get this project going create a .env file and set values for the parameters below:

MONGO_URI=
PORT=
PUBLIC_URL=
PUBLIC_URL_DOMAIN=
PUBLIC_ASSETS=./public
EMAIL_SMTP_HOST=
EMAIL_SMTP_PORT=
EMAIL_SMTP_USER=
EMAIL_SMTP_PASS=
EMAIL_FROM=
ADMIN_EMAIL=
ENV=
LOG_PATH=
JWT_SECRET=
JWT_LIFETIME=

Run

To run simply:

  1. Clone the repo
  2. Run "npm install"
  3. Run "npm start"