An API for the Noteful client supporting GET, POST, DELETE, PATCH.
Complete the following steps to start noteful-server:
- Install the node dependencies
npm install
- Run database migrations
npm run migrate
- Seed database with dummy folders
psql -U dunder_mifflin -d noteful -f ./seeds/seed.noteful_folders.sql
- Seed database with dummy notes
psql -U dunder_mifflin -d noteful -f ./seeds/seed.noteful_notes.sql
- Start nodemon for the application
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 this remote's master branch.