- Github account
- NPM / Node (v10.*)
- Open Terminal / git-bash and run
mkdir -p ~/Projects && cd ~/Projects
git 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 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, 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 start
starts 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 start
with 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.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