Code Monkey home page Code Monkey logo

graintrade-info's Introduction

About project

This is a favorite project for learning more about asynchronous API with the FastAPI package. The main concept of the business is to help cope with a large number of offers from small and large participants of the agricultural market, tied to geographical points. You also need different filters to search for information. It should be completely anonymous and transparent, storing sensitive data as cryptographically hashed.

Azure stage host

Redoc API: https://web-app-graintrade.mangosky-9dd5102f.westus2.azurecontainerapps.io/redoc

Docs API: https://web-app-graintrade.mangosky-9dd5102f.westus2.azurecontainerapps.io/docs

Development

Environment

To install all dependencies use poetry. Move to graintrade-info/ and run:

poetry install

Make sure you have completed at least one env file.

To run locally you can use 2 ways:

  1. Casually running of FastAPI and previously checked database params in dev.env or sample_env file and workinf PostgreSQL database:
fastapi dev app/main.py
  1. And docker compose. To run this use command:
$ export DEVELOPMENT=true
$ echo $DEVELOPMENT 
true
$ docker compose build
$ docker compose up

Production

Deployment

To deploy in Azure container app service:

az login && az acr login --name {azure_container_registry_name} && docker tag {local_image_name}:{tag} {azure_container_registry_name}.azurecr.io/{remote_image_name}:{tag} && docker push {azure_container_registry_name}.azurecr.io/{remote_image_name}:{tag} && az webapp create --resource-group {resource_group_name} --plan {app_service_plan} --name {webapp_name} --deployment-container-image-name {azure_container_registry_name}.azurecr.io/{remote_image_name}:{tag}

graintrade-info's People

Contributors

kivaschenko avatar

Watchers

Lucian avatar  avatar  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.