7 Sept 2019

Getting started React JS. How to deploy React App to Heroku Host.

React JS Start

sudo npm install -g create-react-app

cd react-projects-folder
create-react-app my-app-name

cd my-app-name
npm start

How to deploy React App to Heroku Host.

git init
heroku create $APP_NAME --buildpack mars/create-react-app

// where the $APP_NAME could be like "poshta-app", then it will be used for the domain name: https://poshta-app.herokuapp.com/ 

git add .
git commit -m "Start with create-react-app"
git push heroku master
heroku open

No comments:

Post a Comment

Popular Posts