Skip to content

About

REST API for HoopSpot, a parking-availability app built as the Bangkit Academy 2021 capstone, serving data from MySQL to the Android app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

48 Commits

Folders and files

Repository files navigation

Step to run the API

  1. Install Node.js
  2. Clone this repository branch of cloud-computing using command git clone -b cloud-computing <remote-repo>
  3. Create database capstone, then export the capstone.sql file into your database capstone
  4. Setting your local database config in ./src/configs/database.js
  5. Install all dependencies or modules that needed in this API npm install
  6. Make sure to activicate your xampp before running the project
  7. Type the command to run the server of Node.js npm run start
  8. After then you can access the API in the browser with command that I already type in ./src/routes/route-capstone.js

Consider you want to deploy the API into Google Cloud Platform service of Cloud Run

  1. Create database in GCP using service of Cloud SQL
  2. After created the database you need to create table by copy the syntax from capstone.sql into database Cloud SQL
  3. Setting the config in ./src/configs/database.js from local into cloud, you need comment or deleted the local setting
  4. Setting the variable value in ./deploy.sh into your configuration of cloud
  5. Run the ./deploy.sh to create a container corresponding of ./Dockerfile and deploy it into Cloud Run
  6. You can access the database of Cloud SQL value from the Rest API using url link that Cloud Run provided

About

REST API for HoopSpot, a parking-availability app built as the Bangkit Academy 2021 capstone, serving data from MySQL to the Android app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages