###### tags: `Gifthub, Testing and Domain Hosting`
# Steps for hosting a site through Netlify

1. Access Netlify via [netlify.com] and log in with [admin credentials]
* Import an existing project from GitHub
* Choose the repo from github dropdowns (storyllp > clients-frontend > choose main branch)
* Select to deploy
* Click deploys tab
***Note**: Netlify account is admin@storyllp.com. The Netlify account linked to Github should have minimum access(project to be deployed).
2. In Site Settings
* Build command > npm run build
* Publish directory > build
* Choose the deployment branch of your gifthub repo
3. To create a build folder in the react application run the following command in the terminal of your project:
`npm run build`
4. If React Router is being used, add a _redirects file inside your public folder with the following command:
```
/* /index.html 200
```
5. Publishing a site
* After the build is published, a label of published should be displayed.

The site will be hosted in a staging domain generated by Netlify.
* When a Netlify Build Error! appears, clear all the Warnings in the React app.