- Github account
- NPM / Node (v10.*)
- Open Terminal / git-bash and run
mkdir -p ~/Projects && cd ~/Projects
git clone git@github.com:your_github_username_here/csci-e39.git && cd csci-e39
, replacing "your_github_username_here" with your Github usernameecho your-id-goes-here > .id
, replacing "your-id-goes-here" with your student IDnpm install
npm run build && npm run db
See the Docs directory.
To see all tasks, see the package.json file, under "scripts".
npm start
starts the app and connects to a local environmentnpm run start:prod
starts the app and connects to the live environment
-
npm run clean
resets the directory to a fresh installation -
Open the src/ui/app.js file and update the path to the correct assignment module
For example, to enable Project 1, change
import Module from '../assignments/module-0'
toimport Module from '../assignments/project-1'
npm run migration -- [migration name]
creates a new database migration filenpm run db.migrate
updates the local database schemanpm run web:publish
publishes the current container to Dockerhubnpm run web:deploy
deploys the current container to Herokunpm run web:migrate
updates the live Heroku database schema