- Core
- DX
- Database
- ORM
- Authentication
- Testing
- Deployment
Install Node and PostgreSQL
Run the following to create the test and dev databases, replacing app
with the name of your app:
createdb app_test;
createdb app_dev;
npm install
Create a root .env
file with contents in the format VAR=VALUE in order to specify environment variables when running the app locally.
For example,
TEST_DATABASE_URL=postgres://localhost/app_test
DATABASE_URL=postgres://localhost/app_dev
NODE_ENV=development
npm run build
npm run build-clean
npm run build-watch
npm run lint
npm test
npm run coverage
npm run view-coverage
npm start
To delete and build the dist
folder, run the linter, and start the server:
npm restart
Provisioning the Heroku Postgres addon [Info]
For help deplying a Node.js app to heroku:
Getting Started on Heroku with Node.js