Giter VIP home page Giter VIP logo

zona-api-v2's Introduction

🍽️ Zona API

The "API" was created for the Zóna restaurant in Veszprém, which processes and serves the weekly uploaded pictures on Facebook in a table or JSON format.

🐍 Prerequirements

Good to know

  • selinium (used for scraping)
  • EasyOCR (creating text from image)
  • FastAPI (python api framework)
  • 42 is always a good answer

Install

git clone https://github.com/ipko1996/zona-api.git
cd zona-api

create a virtual python environment

pip install -r requirements.txt

Crete your .env file (I used mongodb atlas for the database)

cp .env.example .env

Install separately

pip install git+https://github.com/JaidedAI/EasyOCR.git

🦄 Run

uvicorn main:app --reload

Go to

  • /docs - swagger 📜
  • / - an apple 🍎
  • /weekly_meal - the menu in json format
  • /weekly_meal/table - a nice table like format for the humans 🙆

zona-api-v2's People

Contributors

ipko1996 avatar

Stargazers

Gábor avatar

Watchers

 avatar

zona-api-v2's Issues

Handle concurrency

If we access one of the end-point and we have no menu we trigger the process to make one. That process can take up to 30 seconds to be done.
If meanwhile this we access the end-point again, that could cause a problem.

Create a Webhook for teams

The address needs to be set as env variable obviously

The webhook should post a message every weekday at 9 or 10 AM to a teams channel

More info:
Link

Link

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.