Lab Assignment 6 (Deploy in cloud) - Ruthvicp/CS5551_team_11-2_labassignments GitHub Wiki
Objective : Deploying part of the project in any of the public cloud platforms like Heroku, AWS, Google play store, Azure etc.
Submitted by
Member 1 : Ruthvic Punyamurtula
Class Id : 30
Member 2 : Navya Ramya Sirisha
Class Id : 26
Project Description : We have created a smart shopping app with the following features, using Augmented Reality
-
Login/Register
-
Social Login - Oauth and Firebase
-
Image Recognition - for searching
-
Shopping Activity - shopping API
-
Displaying user trends - twitter streaming and hashtags
-
Stored values in mongoDB
https://github.com/camlecuyer/CS5551_Team_11_Project
Complete Project Information can be found at :For this lab assignment, I have deployed my part of project contribution - Displaying stats or user activity into Heroku and Google cloud platform. I have used google charts to visualize the user activities.
Google Cloud Platform
Create an account in https://console.cloud.google.com and login to it.
Create a bucket in storage. Here i have already created a bucket under the name - "ase-lab-3"
Upload the project files to cloud storage bucket and make the link public.
For the GCP, I have used project related shopping trends to display in the charts
https://storage.googleapis.com/staging.ase-lab-3-39159.appspot.com/index.html
The output is as shown below
Heroku
The deployed part can be accessed at https://obscure-sierra-41123.herokuapp.com/
For Heroku deployment though the logic is same, the content used here is users daily activities to understand the charts working.
The output is as shown below
The other parts of the project, different android activities are shown in the below video as the integration is yet to be completed for the final submission.
https://www.youtube.com/watch?v=cuIv47Eokms
The working of android app can be seen atThe GIF of the working is shown here
Steps to deploy in Heroku
Dependencies
-
Add npm, node and git to your project repository
-
Create an account at www.heroku.com and login to the portal. Also download the heroku client version at https://devcenter.heroku.com/articles/heroku-cli#download-and-install. Install this in the project repository and verify as shown below
The data for pie chart has been taken from mongoDB
Once the application is created, we can test in local as shown below
Verify the application by running http://localhost:5000/
After testing we need to push the code to the remote repository to deploy on to heroku cloud platform
-
First initialize git and add the files to git staging
-
Now commit the code and push to remote repository
-
Then create the app in heroku using "heroku create"
The above steps are covered in the below image
Now our application is deployed on the heroku cloud platform and can be accessed in the given URL shown when the "heroku create" is run.
My application deployed on heroku can be accessed at https://obscure-sierra-41123.herokuapp.com/