Recommended method is to use nvm
(Node Version Manager) to install and manage different versions of node in your system.
-
Follow the steps in NVM Installation and install
nvm
-
Once
nvm
is installed, install node using
nvm install node
Note: this will install latest version of node, npm on your system
- Use this command inside the cloned project to install packages required for the project
npm install
- Add API base url and service ids to .env.development
- Use
gatsby develop
to run a local development server (by default: localhost:3000) for the web application.
- Add API base url and service ids to .env.production
- Use 'npm run deploy' to publish to
gh-pages
branch