Begin by forking this repo, then cloning down your forked copy to your machine. cd
into the project directory from your terminal.
-
Create a new file at:
/mod-2/whateverly/<yourCohortNumber>/<yourGitHubUsername>.js
- The project and cohort directories have already been created for you, double check that you are adding your new file to this pre-existing directory
- Your GitHub username is the last part of the URL when you go to your profile at
https://github.com/<yourUserName>
e.g. my username would be brittanystoroz
-
Your file should include 2 datasets, both assigned to variables that you export at the bottom of the file. Follow the structure of this sample file to create yours. Do not overwrite this file.
-
Commit and push your changes. Open a pull request.
-
Create a new file at:
/mod-2/memoize/<yourCohortNumber>/<yourGitHubUsername>.js
- The project and cohort directories have already been created for you, double check that you are adding your new file to this pre-existing directory
- Your GitHub username is the last part of the URL when you go to your profile at
https://github.com/<yourUserName>
e.g. my username would be brittanystoroz
-
Your file should include one or two datasets, assigned to variables that you export at the bottom of the file. Follow the structure of this sample file to create yours. Do not overwrite this file.
-
Commit and push your changes. Open a pull request.
- Add a cohort directory for the current project and include a copy of the
sample.js
file in it - Merge student PRs for adding their datasets
- Pull down all changes
- Double-check that no syntax errors have been added by running the local server with
node index.js
(Assuming you get a message that says the server is running on localhost:3000, everything is fine. If the server doesn't start up, you'll get some sort of error message.) - New endpoints will automatically be generated with the following pattern:
localhost:3000/api/v1/projectName/cohortNumber/studentGitHubUserName/dataVariable
e.g.localhost:3000/api/v1/whateverly/1811/lizAsbell/smoothies
- Go to heroku.com and login to the turing instructors account (Search for instructors@turing.io in the instructional-staff channel for credentials)
- Click on the
fe-apps
project > Access - Add yourself as a collaborator with your personal Heroku account
- Install the Heroku CLI if you don't have it yet, and login with your personal Heroku credentials from your terminal with
heroku login
- Add a Heroku remote to your local copy of
fe-apps
withheroku git:remote -a fe-apps
- Deploy to Heroku with
git push heroku master
- Endpoints will exist at: https://fe-apps.herokuapp.com/api/v1/whateverly/1811/lizAsbell/smoothies