From your terminal:
-
Clone this repo:
git clone git@github.com:BryanNilsen/Instructor-Brain.git
-
Install dependencies:
npm install
-
Remove path to this repository:
git remote rm origin
From your browser:
-
After creating the repository, copy the repo URL ( this example uses SSH )
Back in your Terminal:
-
Add the URL to your repo:
git remote add origin git@github.com:{your GH username}/{name of your repo}.git
-
Now you can push this cloned repo to the new repo you created under your username:
git push origin master
So far we have cloned this repo, created a new repo and pushed up our copy and you should see the code on GitHub. Now we have to make just a few changes in order for you to deploy it for your students to use.
- Launch your favorite code editor from the Instructor-Brain root directory. This is where the package.json file lives
In your code editor:
-
Open the package.json file and locate the line:
"homepage": "https://BryanNilsen.github.io/Instructor-Brain"
-
Replace
BryanNilsen
with your GitHub username andInstructor-Brain
with the name of the new repo you just created so it looks like this:"homepage": "https://{Your-Username}.github.io/{Your-Repo}"
-
Save the changes to package.json
The next step assumes you have a Github Project Board or alternative url for the students to access in order to sign up to receive help. If not, take some time to do that now.
Still in your code editor:
-
Open Card.js from the
src > components
directory, and change the URL on line 8 to the location of your instructor help project board:const link = "{your path here}
-
Save the changes to Card.js
Back in your terminal:
-
add your saved changes:
git add --all
-
commit your changes:
git commit -m "{your commit message here}"
-
push your changes:
git push origin master
-
deploy your app:
npm run deploy
You should now be able to view your app online at the homepage path you provided above; i.e. https://{Your-Username}.github.io/{Your-Repo}
This project was bootstrapped with Create React App.