This is my personal website using React, Gatsby, TypeScript and SCSS. https://emiliapaz.github.io/
A nodejs >= 6.0.0 setup with yarn is recommended.
-
Create a Gatsby site.
Install
gatsby-cli
package globally on your machine.# using NPM npm install -g gatsby-cli # using YARN yarn global add gatsby-cli
-
Start developing.
Move to project's directory. The application lives in the
src/
directory. Make sure you are in the react-gatsby branch for develop.cd project-name/
To view your site locally run the following command and open http://localhost:8000/
# using npm npm start # using yarn yarn start
-
Deploy your app to Github pages!
To deploy, make sure you are in the react-gatsby branch. Since we are deployinh to GitHub pages, we need to build it from the master branch. This means the master branch will be cluttered with files. Therefore, we will work locally from react-gatsby branch, and the use gh-pages to deploy to master on remote.
# using npm npm run deploy # using yarn yarn deploy