Deploying to Heroku

This step is optional and you can do it if you are interested in deploying this app to Heroku. To continue with this section, you need to have set up a Heroku account and installed the Heroku Toolbelt. Once that is done, open a new Command Prompt or Terminal inside the smart-exchange-base folder, and then run:

$ heroku login

This is a prompt for your Heroku credentials that you have signed up with. Next, let's get our application ready for deployment. Run this:

$ npm run build
or
$ yarn build

This will run the required scripts to build the final dist folder, which will be deployed to Heroku. Once the build is completed, run the following:

$ git add -A
$ git commit -am "Cloud Translate API Integration Commit"

Let's push the code to Heroku. Run this:

$ git push heroku master

If everything goes well, the code will be uploaded to Heroku and you should be able to view the application at https://smart-exchange.herokuapp.com.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.179.100