Skip to content

It is a backend service providing rest api to render data

Notifications You must be signed in to change notification settings

Expandergraph/python-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-backend

It is a backend service providing rest api to render data. It is built with flask + sqlalchemy.

API design doc: https://www.notion.so/API-Doc-75ad818df5a64b74995ef3d1cca46cdf

API Mock-up: https://app.apiary.io/xpander/editor

API list: https://private-f7f12f4-xpander.apiary-mock.com/

database setup

The development environment is python 3.7 Steps to setup database:

  • pip install -r requirements.txt
  • put the desired parameters (USERNAME, PASSWORD, IP, PORT, DB) into /data_model/base.py
  • python3 /data_model/db_update.py

start the web server

enter web folder, gunicorn -w 4 server:app --bind=0.0.0.0:5000 --daemon --access-logfile /home/ec2-user/log/access_file_g.log --error-logfile /home/ec2-user/log/error_file_g.log --capture-output

check log (according to the web starting CLI)

  • /home/ec2-user/log/access_file_g.log
  • /home/ec2-user/log/error_file_g.log

About

It is a backend service providing rest api to render data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages