Answers for "how to deploy a react app"

60

command to create react app

npx create-react-app my-app
cd my-app
npm start
Posted by: Guest on January-06-2020
4

create react app deployment heroku

npm install -g create-react-app
create-react-app my-app
cd my-app
git init
heroku create -b https://github.com/mars/create-react-app-buildpack.git
git add .
git commit -m "react-create-app on Heroku"
git push heroku master
heroku open
Posted by: Guest on February-14-2020
1

Deploy React App

npm install gh-pages --save-dev
package.json
//...
"homepage": "http://gitname.github.io/react-gh-pages"
//...
"scripts": {
  //...
  "predeploy": "npm run build",
  "deploy": "gh-pages -d build"
}
git init
git remote add origin https://github.com/gitname/react-gh-pages.git
npm run deploy
git add .
git commit -m "Create a React app and publish it to GitHub Pages"
git push origin master
Posted by: Guest on June-24-2021
0

how to upload react js project on server

npm install --save-dev ftp-deploy
Posted by: Guest on October-06-2020

Code answers related to "how to deploy a react app"

Code answers related to "Javascript"

Browse Popular Code Answers by Language