I created this simple starter kit to get started working on simple Node.js API project quickly
Hosting
Testing
- Linting (Airbnb)
- Authentication with JSON Web Token
- Username, Email, Password validations
- User signup, signin
- API and Unit testing
- Easily deployable to Heroku (Procfile)
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
npm run test
and in another tab
npm run test:only
heroku login
heroku create
git push heroku master
With sequelize-cli
./node_modules/.bin/sequelize init
will create model setup and edit ./config/config.json
for your database.