- Github account
- NPM / Node (v10.*)
- Open Terminal / git-bash and run
mkdir -p ~/Projects && cd ~/Projectsgit 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 installnpm run build && npm run db
See the Docs directory.
To see all tasks, see the package.json file, under "scripts".
npm startstarts the app and connects to a local environmentnpm run start:prodstarts the app and connects to the live environment
-
npm run cleanresets 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.migrateupdates the local database schemanpm run web:publishpublishes the current container to Dockerhubnpm run web:deploydeploys the current container to Herokunpm run web:migrateupdates the live Heroku database schema