API Server for serving CatarAct APK requests. This repository is part of CatarAct Google Bangkit Capstone Project.
- Linux OS (prefered)
nodejsyarnpackage managerPostgreSQLdatabase- A Google Cloud Project with a public Google Cloud Storage Bucket configured
- A machine learning model in Tensorflow.js format, preferably stored in Google Cloud Storage Bucket
- Clone this repository.
- Create a
.envfile in the root folder. Fill it with:
APP_PORT= # port to run the server (e.g. 3001)
DATABASE_URL= # postgresql database connection url
JWT_SECRET= # a secret text for signing JWT
MODEL_PUBLIC_URL= # a url to ML model JSON file in Tensorflow.js format
GCS_BUCKET= # Google Cloud Storage Bucket name
PROJECT_ID= # Google Cloud Project ID
GCS_CREDENTIALS= # Google Cloud Storage Service Account credentials key in stringified JSON format.
- Run
yarnto install dependencies. - Run
yarn start:devto run the development server.
A Dockerfile is available on the root folder for containerization. The docker image can be used for deployment such as Cloud Run or a remote VM.
API documentation available on GDocs.
This project is developed by Bangkit CatarAct team, specifically bonaventuragal and aidahputri.