Temporary Frontend Gatsby Site set up for Audiopedia
- To add this online repo you can do:
git clone https://github.com/audiopedia-t4sg/pwa.gitwhich will make a new folder with all this code - To pull changes from the master branch:
git pull origin master(syntax git pullthe remote name, in this case originthe branch name, in this case master branch) - To make a new branch:
git checkout -b new-branch-name - To commit changes you've made: 1.
git add .2.git commit -m "blah blah commit msg" - To push changes to that new branch:
git push origin new-branch-name - To go back to master branch
git checkout master - To go back to another existing branch
git checkout other-branch-name
-
You will need the following installed:
- nodejs
- gatsby
npm i -g gatsby-cli
-
To run development server locally:
gatsby develop- Development server runs at
http://localhost:8000by default - GraphiQL at
http://localhost:8000/___graphql
-
gatsby-browser.js: This file is where Gatsby expects to find any usage of the Gatsby browser APIs (if any). These allow customization/extension of default Gatsby settings affecting the browser. -
gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the config docs for more detail). -
gatsby-node.js: This file is where Gatsby expects to find any usage of the Gatsby Node APIs (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process. -
gatsby-ssr.js: This file is where Gatsby expects to find any usage of the Gatsby server-side rendering APIs (if any). These allow customization of default Gatsby settings affecting server-side rendering.
Gatsby docs: https://www.gatsbyjs.com/docs/