Skip to content

Final Year Project's backend using Python FastAPI framework and Celery to serve Tensorflow Model

Notifications You must be signed in to change notification settings

weiran0630/fyp-webapp-server

Repository files navigation

fyp-webapp-server

Final Year Project's backend using Python FastAPI framework and Celery to serve Tensorflow Model

Built With

Prerequisites

  • 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

Installation

  1. Clone the repo
    git clone https://github.com/weiran0630/fyp-fastapi-celery.git
  2. Create and startup Python virtual environment
    pip3 install virtualenv
    virtualenv .venv
    source .venv/bin/activate
  3. Install Python packages
    pip install -r requirement.txt

Run apps locally using Heroku CLI

  1. Set up local environment variables

    touch .env
    open .env

    Here’s an example .env file:

    REDIS_TLS_URL=rediss://
    REDIS_URL=redis://
    
  2. Start up Redis server

    redis-server
  3. Locally start all of the process types that are defined in Procfile

    heroku local

Test and document your API using OpenAPI Swagger

About

Final Year Project's backend using Python FastAPI framework and Celery to serve Tensorflow Model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages