- Note: you can skip installation instructions entirely, if you prefer to view the live version on Heroku.
- Project is viewable online from your mobile device, but requires a Linux/Mac/Windows computer to run locally.
- Make sure you have Node installed on your machine
- From the command line, in the project's home directory, run the following commands:
npm install
npm install --prefix client
npm run build --prefix client
- Dependencies are now installed. If you return to this project later, you can start from this point to run it.
- To start the server, run
npm start
- View the project from a web browser, at localhost:8080
- To stop your server when done, hit
ctrl-c
from the same command line window.
- To test server:
- From the command line, in the project's home directory, run
npm test
.
- From the command line, in the project's home directory, run
- To test client:
- From the command line, in the project's home directory, run
npm run test-client
. - If you see only one test, hit
a
to run the rest of them.
- From the command line, in the project's home directory, run