- Github account
- NPM / Node (v10.*)
- Open Terminal / git-bash and run
mkdir -p ~/Projects && cd ~/Projectsgit clone [email protected]: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 ID (to find your student ID, log in to HES Online Services, click "Student Information and Status", select a term and hit continue, then find it under the heading "Harvard ID" on the right side of the page)npm 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, which in this case is project-1
For example, to enable Project 1, change
import Module from '../assignments/module-0'toimport Module from '../assignments/project-1' -
npm startstarts the app and connects to a local environment - if you connect to the prod environment using the other instructions above, it won't work and you'll be uploading your stuff into the cloud for all to see. Connect to the local environment and usenpm startwith Project 1 exclusively. -
Work on your project, make regular and meaningful commits.
-
When your project is complete, submit a pull request.
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