- Clone this starter kit repository and rename the repository to anything you'd like in one command:
git clone git@github.com:turingschool-projects/self-directed-fe-starter.git <name of your choice>
-
Change into the new director directory.
-
Remove the default remote (origin):
git remote rm origin
-
Create a new repository on GitHub.
-
Add your new repository remote - your remote URL and user name will be different in the command below
git remote add origin git@github.com:<YOUR GITHUB NAME>/<PROJECT NAME>.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.
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/project-name.