

Netlify needs a project branch to automatically trigger an application’s deployment. You may be wondering why you need this branch. Give this branch any name you want for this tutorial I will name it netlify-deploy-ignore. Once your project is on GitHub, create a new branch. Note: Adding the Netlify CLI as a dependency prevents breaking changes for deployments in CI environments.

Run this command at the root of your project: npm install -save-dev netlify-cli First, install the Netlify CLI package as a development dependency in your React project. You need to set up your React project on GitHub before you can get it on Netlify and CircleCI. The commands boot up the React site at the local URL: Load this address in your browser. Use these commands to run the project: cd netlify-react-app

The result is a React project created in the netlify-react-app folder. This command will invoke the create-react-app npm package to scaffold a new React application. Run this command: npx create-react-app netlify-react-app

Creating a new React siteĬhoose a location within your system to create the React site that will be deployed to Netlify. With all these installed and set up, we can begin the tutorial. Our tutorials are platform-agnostic, but use CircleCI as an example.
