Code Monkey home page Code Monkey logo

fyp-webapp-server's Introduction

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

fyp-webapp-server's People

Contributors

weiran0630 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.