To run locally:
- Set your SERVERPORT environment variable. (setx SERVERPORT or set SERVPORT= or export SERVERPORT ). On Windows, you'll need to relaunch your cmd. Choose a number that isn't 3000 or set your PORT environment variable as well.
- Run
node app.js
in the gosushi_server folder - Run
npm start
in the gosushi_client folder
Creating and running unit tests:
- Go to gosushi_server
- run
npm test
ornpx jasmine
to run all test files - run
npx jasmine spec/_filename_.test.js
to run tests in only individual files - All unit tests must be terminated by .test.js and must be within the spec/tests folder. They can be placed within subfolders if necessary. See jasmine.test.js for an example.