- Clone this starter kit repository and rename the repository to
quantified-self-fe
in one command
git clone [email protected]:turingschool-examples/qs-fe-starter-kit.git quantified-self-fe
-
Change into the
quantified-self-fe
directory -
Remove the default remote (origin)
git remote rm origin
-
Create a new repository on GitHub named
quantified-self-fe
-
Add your new repository remote - your remote URL and user name will be different in the command below
git remote add origin [email protected]:<YOUR GITHUB NAME>/quantified-self-fe.git
- Install the dependencies of the starter kit
npm install
- Add, commit, and push up to your repository
git add .
git commit -m "Initial commit using starter kit"
git push origin master
To see your code in action locally, you need to fire up a development server. Use the command:
npm start
Once the server is running, visit in your browser:
http://localhost:8080/
to run your application.
You will need to make sure that your Quantified Self API is also running at http://localhost:3000
This site will be served from GitHub Pages in production.
In order to see your application running on production:
-
From the command line, run
npm run build
. -
Commit and push your application to GitHub.
-
Visit your repository on Github
-
Go to Settings
-
Under the Github Pages section of Options, select 'master' as your source and click
Save
Be sure to npm run build
and commit before each push to master. A few seconds after you push up, you should be able to see your application at https://your-github-username.github.io/quantified-self-fe.