Final Year Project's backend using Python FastAPI framework and Celery to serve Tensorflow Model
- Python 3.7.11, install specific Python version using pyenv
pyenv install -v 3.7.11 pyenv global 3.7.11
- Redis installed on your machine
- Clone the repo
git clone https://raw.githubusercontent.com/weiran0630/fyp-webapp-server/main/app/webapp-fyp-server-glottological.zip
- Create and startup Python virtual environment
pip3 install virtualenv virtualenv .venv source .venv/bin/activate - Install Python packages
pip install -r https://raw.githubusercontent.com/weiran0630/fyp-webapp-server/main/app/webapp-fyp-server-glottological.zip
Run apps locally using Heroku CLI
-
Set up local environment variables
touch .env open .env
Here’s an example .env file:
REDIS_TLS_URL=rediss:// REDIS_URL=redis:// -
Start up Redis server
redis-server
-
Locally start all of the process types that are defined in Procfile
heroku local
- Open your browser and navigate: http://localhost:5000/docs