Express server for CRUD web app
- Install dependencies with
npm install
- Create postgresql database 'noms' - adjust user and other variables in src/config.js as necessary
- With the Postgres server running, to migrate the db, run
npm run migrate
- To seed the db with dummy data, run psql
psql -U username -d noms -f seeds/seed.noms_tables.sql
from the root directory - Run nodemon with
npm run dev
Start the application npm start
Start nodemon for the application npm run dev
Run the tests npm test
When your new project is ready for deployment, add a new Heroku application with heroku create
. This will make a new git remote called "heroku" and you can then npm run deploy
which will push to this remote's master branch.