Skip to content

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

hademircii/fortune-cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published