/Unisoft_CRM_Back

2021S2 - COMP30022 - IT Project - Backend

Primary LanguagePython

Python Flask Backend for Unisoft CRM System

Heroku link

https://unisoft-crm.herokuapp.com

Backend API socket

https://unisoft-back.herokuapp.com

Backend Api Docs

Install requirements to run the server

  • pip install -r requirements.txt

    Virtural environment:
  • source venv/bin/activate on Unix
  • source venv/scripts/activate or venv/scripts/activate on Windows

Start backend server

Run flask run

Deploy app on Heroku

  • Create Heroku account
  • Create requirements.txt file and record down all external library
  • Create Procfile file and add line web: gunicorn app:app (since we are using gunicorn to deploy)
  • Create a new app on heroku by clicking new on heroku dashboard
  • Decide a app name and chose which server you want to use
  • Connect heroku to github and ask authentication on github
  • Enable automatic deploy below and wait for CI to pass
  • Click on Deploy branch