Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Node.js / Express / MongoDB / PostgreSQL / Authentication API Starter Kit

License

Notifications You must be signed in to change notification settings

yhagio/node-postgres-api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js / Express / PostgreSQL (Sequelize) starter kit

I created this simple starter kit to get started working on simple Node.js API project quickly

Hosting

Testing

Features

  • Linting (Airbnb)
  • Authentication with JSON Web Token
  • Username, Email, Password validations
  • User signup, signin
  • API and Unit testing
  • Easily deployable to Heroku (Procfile)

To run locally

Make sure to install and run PostgreSQL first.

brew update
brew install postgres
createdb npas-dev

Clone the repo and run the app

git clone [email protected]:yhagio/node-postgres-api-starter.git nd
cd nd
npm i 
npm run start

To run test

npm run test

and in another tab

npm run test:only

To deploy on Heroku

heroku login
heroku create
git push heroku master

Side Note

With sequelize-cli

./node_modules/.bin/sequelize init

will create model setup and edit ./config/config.json for your database.

About

Node.js / Express / MongoDB / PostgreSQL / Authentication API Starter Kit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published