expressJS + postgres + api setup
expressJS
postgreSQL node-postgres
jwt
REST API (json)
Clone the repo or setup your way to epapi-stack
git clone https://github.com/motherfogger/epapi.git
Install
bash cd epapi npm install
Setup .env file (copy from .env.sample) and Run
npm run dev
Run database seed (optional if starting development to have dummy users)
npm run seed
npm start
Runs on localhost:3000 by default but can be configured using the PORT
environment variable.
npm test
# Watch repo
npm run test:watch
npm run lint
npm run lint:fix