Code Monkey home page Code Monkey logo

hademircii / fortune-cookies Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

a portfolio project. a real world example server built with FastAPI, Pydantic and SQLAlchemy and an aiohttp based client. demonstrates async programming, style and OOP in Python

License: MIT License

Python 93.73% Shell 1.00% Makefile 2.63% Mako 2.63%
aiohttp asynchronous-programming fastapi pydantic fast-api fastapi-sqlalchemy asyncio docker docker-compose python

fortune-cookies's Introduction

Fortune Cookie Wisdom

an app that texts you curated quotes, periodically.

The App

Uses my favourite libraries like FastAPI, Pydantic, together in a server to manage quotes and receivers. there is a consumer built with asyncio and aiottp, managed by a main module and runs forever. some techniques for async programming, object-oriented design and error handling are there with the style of Python I enjoy.

Running the Application

Using Docker, you can easily set up and run the application:

$ docker-compose up

the go to localhost:80/docs/ in your browser.

Ensure you have Docker and Docker Compose installed. The application also requires Twilio account credentials (TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, and TWILIO_FROM_PHONENUMBER) and an api key (FORTUNE_COOKIE_API_KEY).

Steps to Run

  1. Clone the repository.
  2. Rename .env.sample to .env and add your Twilio credentials.
  3. Run docker-compose up.

You'll need an API key to register your phone number and start receiving quotes.

fortune-cookies's People

Contributors

hademircii 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.