-
Install node here
-
Click the fork button on the github repo. This will create a repository on your github account that is a copy of ours.
- Clone down the repo you forked
git clone <url to forked repo>
cd React-Workshop
- Install Packges ( may take a bit )
npm i
- Run Project
npm run start
You should see your browser open to localhost:3000
and see the home page of the project
The project is divided into pages and we are using AWS to track the views on each page. To create a new page, follow the steps below.
-
Copy-Paste Home.js and use it as a template for a page
-
Rename the file
-
Edit the
describe
function in to describe your page. This will determine how it shows up in the pagelist -
Include an image for your pages. Images are loaded from the
public
folder or through urls directly -
Update the
routes
variable in./src/pages/_.js
to reference your new page. The key will be the route to your page. -
Your page should now show up on the
Pagelist
, Views will be tracked through AWS automaticly. When clicked it will bring you to the page itself.
This project is ment to be a community activity. Grab your friend, have them learn a bit of react and push their page! We want to see everyones react skils!
Once you like your changes, push them to the repo with the following.
- Commit your changes
git add -A
git commit -m "Description of my changes"
- Push your changes to your repo
git push
- Send a pull request to add your code to the master repo. This will allow us to look at your page and then aprove it to be added to everyones project!