Giter Site home page Giter Site logo

capstone's Introduction

Bangkit 2021 Capstone Project

B21-CAP0397

Android Development

  1. Ahmad Febrianto - [email protected]
  2. Muhammad Irvan - [email protected]

Cloud Computing

  1. Glenn Yohanes - [email protected]

Machine Learning

  1. Kevin Trisnadi Nugroho - [email protected]
  2. Herlina Budiarti - [email protected]
  3. Rastika Intan Nastiti - [email protected]



Project Brief

Android

  • The android app project is named ENDF, located inside Android folder in the repo.
    So, if you have cloned our repo, in order to build the app, you have to import the ENDF folder into the Android Studio, not the parent repo folder: capstone.

  • The whole project is written in Kotlin.

  • In order for the app to run, you have to provide the following before building the app:

    • Firebase collection credential in google-services.json.

      This is required under the assumption that you have set up a collection on Firebase and populate it with data you want to visualize in the app. In our context, it is the earthquakes record from BMKG. This credential is needed to authenticate the request for fetching the data from the app. To setup the credential, place the google-services.json file inside the app folder of the project.

      However, you can go with other alternatives on how and where you want to host your data. This way, the firebase credential is no longer needed.

    • Google Maps API key.

      Place the API key in gradle.properties and local.properties file. Both are located inapp folder. This API key is needed for two main servces: Markers and Places Autocomplete.

      For the detailed documentation, refer to:

Machine Learning

  • Install Python3 on your device.
  • Run the following commands:
sudo apt install python3-pip
pip3 install pandas numpy tensorflow matplotlib sklearn
  • Run train.py to generate new model. It will be saved as a tensorflow saved_model format.

Cloud

  • Create a GCP Project.
  • Enable the necessary APIs and SDKs. Firestore, Cloud Run, Cloud Storage, Compute Engine, Container Registry, Maps, Places
  • Create an API key that will be used by your Android app to authenticate.
  • Connect your Android app to Firebase, this is required in order to be able to use the Firebase SDK.
  • Create a Compute Engine instance, this will be used to deploy the flask app and run the scraping scripts.

Deploying the ML model to Cloud Run

  1. Use the Dockerfile to build a custom image based on the TensorFlow Serving image >This Dockerfile will copy the ML folder which contains the model into the container and run the necessary commands
  2. Upload the image to the Container Registry.
  3. Deploy the image from Container Registry to Cloud Run.

Running the flask app

  1. Make changes in the flask app accordingly.
  2. Copy the flask app into the compute engine instance.
  3. Set up the compute engine instance to run flask. >You may refer to this guide for AWS EC2: https://www.datasciencebytes.com/bytes/2015/02/24/running-a-flask-app-on-aws-ec2/

Running the scraping scripts

  1. Make changes in the scraping scripts accordingly.
  2. Copy the scripts into the compute engine instance.
  3. Run the scripts to start scraping.

capstone's People

Contributors

ahmadfebrianto avatar deathwish99 avatar kurohayabusa-r avatar mirvn avatar

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.