Giter Site home page Giter Site logo

backend's Introduction

banner_CC

NanamYuk-Cloud Computing

Hello, this is backend NanamYuk application made by Capstone Team C22-PS316 if you want to know our team member please check this link

Table of Contents

Cloud Computing Team

Name Bangkit ID Contacts
Ahmad Solahudin Rifandi C2224W2082 Github & Linkedin
Refin Refiansyah Maldini C7237F2141 Github & Linkedin

What We Do?

We are creating a backend application as intermediate between Machine Learning and Mobile Development using NodeJS, MySQL & Flask. After that we deploy all of the code to Google Cloud Platform

What Services that we use in GCP?

Google Cloud Services Platform
Cloud App Engine NodeJS (Backend)
Cloud Run Flask (Model)
Cloud Storage Images & Dataset
Cloud SQL Database (MySQL)

Repositories

Learning Paths Link
Organization Github
Machine Learning Github
Mobile Development Github

Endpoint

Endpoint Method Body Request (JSON) Response Body (JSON) Description
/ GET - Response to this server is success GET Request to the server
/plant GET - id, nama, namaLatin, deskripsi, suhu, tanah, cahaya, kelembapan, rainfall, siram, image, tutorial GET Request to show all available plants
/userplant GET - date, plant_id, nama_penanda, state, user_id GET Request to show all plants that user have
/plant/{id} GET - id, nama, namaLatin, deskripsi, suhu, tanah, cahaya, kelembapan, rainfall, siram, image, tutorial GET Request to specific plant that user choose
/userplant/{id} POST date, plant_id, user_plant_id, nama_penanda, state, user_id Insert Successful POST Request to add plant that user choose
/userplant/{user_plant_id}/{plant_id} GET - nama_penanda, id, nama, namaLatin, deskripsi, suhu, tanah, cahaya, kelembapan, rainfall, siram, image, tutorial GET Request to show specific plant that user choose including nama penanda
/deleteuserplant/{user_plant_id} DELETE - Delete Successful DELETE Request to remove plant that user choose

How To ?

Prepare your code in local device

  1. Prepare your GCP project
  2. Create your Cloud SQL and create database
  3. Import "nanamyuk_databases.sql" to your Cloud SQL
  4. Open terminal and make sure you're in backend-nanamyuk directory
  5. Replace line 10-13 in "/routes/plant.js" to your Cloud SQL data
  6. Run "npm run start" in your terminal (make sure nodemon is installed if you're running on local device)
  7. Try open your browser and put the same link and port with your localhost (Ex: http://localhost:8080)
  8. If you're trying to use HTTP Request on you endpoint link please look at this

Deploy your code in Google App Engine

  1. Prepare your GCP project
  2. Open App Engine and if you don't know how to use it please follow this link
  3. After App Engine installed upload all the code to Cloud Shell and change "backend" to "default" in "app.yaml" file if this is your first time using App Engine
  4. Replace back "default" to "backend" and re-deploy your code
  5. Now you have link endpoint globally in the internet and everyone can use it :)

Cloud Architecture

Cloud Architecture

backend's People

Contributors

rifandii avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

rifandii marko-id

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.