The following guide should be used for testing and deployment from the CLI (command line interface).
The following instructions assumes Node (which comes packaged with npm
) has been installed globally and is available at the command line. To install Node, use one of the two options:
- Web Download & Install: Download and install from Node's official website
- Command Line Interface: Install Homebrew using
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then runbrew install node
.
It's recommended that NPM or Yarn (can be installed using these instructions) be used from the CLI to manage dependancies, test and build.
To deploy the project to Netlify for testing and demonstration, install netlify
at the CLI using npm install netlify-cli -g
. An account for Skillpod has been created for Netlify, with the siteId
stored in .netlify/state.json
for easy CLI deployment. When a new account is created, update the sideId
. The file netlify.toml
will contain the build settings.
- Update your package manager of choice:
- NPM:
npm install npm@latest -g
- YARN:
yarn policies set-version
- NPM:
- From the project directory, install module dependancies (listed in
package.json
andlock
files):- NPM:
npm install
- YARN:
yarn
- NPM:
npm start
oryarn start
will test files on a local servernpm run build
oryarn build
to create a deployment build to project subfolder/build
netlify deploy
deplpoys test build to netlify server (specified in.netlify
folder)- Read more about Netlify deployment here: https://www.netlify.com/docs/cli/#manual-deploys
- You should be prompted to login here. You may also use
netlify login
prior to this step to login from the CLI
netlify deploy --prod
deploys to the Netlify production server. The current Netlify account can be found here
- Steps to help migrate from
npm
toyarn
: https://yarnpkg.com/lang/en/docs/migrating-from-npm/ - This project template was bootstrapped with Create React App