Reader small image

You're reading from  Google Cloud AI Services Quick Start Guide

Product typeBook
Published inMay 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788626613
Edition1st Edition
Languages
Right arrow
Author (1)
Arvind Ravulavaru
Arvind Ravulavaru
author image
Arvind Ravulavaru

Arvind Ravulavaru is a platform architect at Ubiconn IoT Solutions, with over 9 years of experience in software development and 2 years in hardware & product development. For the last 5 years, he has been working extensively on JavaScript, both on the server side and the client side. And for the last couple of years in IoT, building a platform for rapidly developing IoT solutions, named The IoT Suitcase. Prior to that, Arvind worked on big data, cloud computing, and orchestration.
Read more about Arvind Ravulavaru

Right arrow

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. Run the following:

$ heroku login

This will prompt you for the Heroku credentials that you have signed up with. Next, let's get our application ready for deployment. Run the following:

$ npm run build

Alternatively, run this:

$ yarn build

Either of these 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 Natural language API Integration Commit"

Let's, push the code to Heroku. Run the following:

$ git push heroku master...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Google Cloud AI Services Quick Start Guide
Published in: May 2018Publisher: PacktISBN-13: 9781788626613

Author (1)

author image
Arvind Ravulavaru

Arvind Ravulavaru is a platform architect at Ubiconn IoT Solutions, with over 9 years of experience in software development and 2 years in hardware & product development. For the last 5 years, he has been working extensively on JavaScript, both on the server side and the client side. And for the last couple of years in IoT, building a platform for rapidly developing IoT solutions, named The IoT Suitcase. Prior to that, Arvind worked on big data, cloud computing, and orchestration.
Read more about Arvind Ravulavaru