Giter VIP home page Giter VIP logo

nachet-backend's Introduction

nachet-backend

High level sequence diagram

SD_1 drawio (2)

Details

  • The backend was built with the Quart framework
  • Quart is an asyncio reimplementation of Flask
  • All HTTP requests are handled in app.py in the root folder
  • Azure Storage API calls are handled in the `azure_storage_api/azure_Storage_api.py
  • Inference results from model endpoint are directly handled in model_inference/inference.py

RUNNING NACHET-BACKEND FROM DEVCONTAINER

When you are developping, you can run the program while in the devcontainer by using this command:

hypercorn -b :8080 app:app

RUNNING NACHET-BACKEND AS A DOCKER CONTAINER

If you want to run the program as a Docker container (e.g., for production), use:

docker build -t nachet-backend .
docker run -p 8080:8080 -v $(pwd):/app nachet-backend

TESTING NACHET-BACKEND

To test the program, use this command:

python -m unittest discover -s tests

ENVIRONMENT VARIABLES

Start by making a copy of .env.template and renaming it .env. For the backend to function, you will need to add the missing values:

  • NACHET_AZURE_STORAGE_CONNECTION_STRING: Connection string to access external storage (Azure Blob Storage).
  • NACHET_MODEL_ENDPOINT_REST_URL: Endpoint to communicate with deployed model for inferencing.
  • NACHET_MODEL_ENDPOINT_ACCESS_KEY: Key used when consuming online endpoint.
  • NACHET_DATA: Url to access nachet-data repository
  • NACHET_HEALTH_MESSAGE: Health check message for the server.

DEPLOYING NACHET

If you need help deploying Nachet for your own needs, please contact us at [email protected].

nachet-backend's People

Contributors

russelljimmies avatar s-khos avatar vivalareda avatar sonoflope avatar issamansur avatar thomascardin avatar

Stargazers

 avatar

Forkers

maxencegui

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.