Node.js api server for project-vanilla-pudding
npm install
to install all dependencies.- Create a shell script to store your secret keys. If you call it
secret.sh
thenenv.sh
will automatically source it when it runs. You'll need to define the following variables:EXPRESS_SECRET_KEY
source env.sh
to set up your dev environment -- IMPORTANT the server won't run unless environment variables are set correctly, so sourcing this script is required.- Remember to add the filename of your secrets file if you're not using secret.sh.
npm install knex -g
(/wsudo
if needed) to install the knex cmd-line client.knex migrate:latest
to migrate to the latest version of the database.- Get tests and code coverage up and running.
npm install mocha -g
npm install istanbul -g
npm test
to test your changes. This runs the istanbul code coverage tool as well as the mocha test runner.
[more steps coming soon]