Skip to content

sg-engr-stream/backend-flask

Repository files navigation

SG Engineering Stream Hackathon - Backend Flask

Currently running at Heroku

API Dashboard available at Dashboard.

Credentials:

Username Password
admin admin

Swagger-UI available at Swagger-UI. It's incomplete though.

This project is generated using python 3.

Requirements

  • Install postgresql server and python (postgresql v12 and python v3.8 has been used in this project)

Getting delvelopment server ready

Run below commands

  • git clone https://github.com/sg-engr-stream/backend-flask
  • pip install -r requirements.txt

update database configuration at environment and dboard, and update system name in app.py and services\psql_config.py

  • python app.py

API's should be running at http://localhost:5000/

Browse http://localhost:5000/, you should see 'Hello World!'.

Add heroku origin and deploy

Create or own app using heroku cli (app name needs to be unique, below will not work)

  • heroku create app-stage --remote stage
  • heroku create app-prod --remote prod
  • git push stage master
    or
  • git push prod master

CI/CD and Reports

Delete All Data From FMD Tables

  • delete from public."fmdStackLine";
  • delete from public."fmdOutlier";
  • delete from public."fmdRequest";
  • delete from public."fmdEndpoint";
  • delete from public."fmdCodeLine";
  • delete from public."fmdCustomGraph";
  • delete from public."fmdCustomGraphData";

Releases

No releases published

Packages

No packages published

Languages