Backend API for VizNews Mobile App. Currently this service is already up and running on Google Cloud App Engine. You can try it on: https://promising-idea-314607.et.r.appspot.com/
- Python 3
- Windows, macOS, or Linux are supported
Clone the repo and run the following command in a terminal
pip install -r requirements.txt
Rename secret.py.example
to secret.py
and set up the local database. Ensure the configuration in secret.py
is correct.
You can directly run the application using the following command (Do not use it in a production environment).
python main.py
or if you prefer using a WSGI server, you can use gunicorn which offers -reload
option or waitress
gunicorn main:app --reload
waitress-serve main:app
This project includes app.yaml
which can be used to deploy the app to Google App Engine. Ensure that you already selected a GCP project via gcloud config set project $PROJECT_ID$
. Then, simply just run the following command:
gcloud app deploy
Please refer to API.MD