Skip to content

zackees/template-docker-fastapi-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

template-docker-fastapi-site

note that this was copied from anothet repo and certain tect may no linger aplly

image

Design

This is to be a fastapi app. Use this template: https://github.com/zackees/template-docker-fastapi-site

Endpoint management:

  • All endpoints will input pydantic objects, and return pydantic objects.
    • Pydantic models convert to json for input and outputs, and are type checked
    • They will also become part of the openapi that's automatically generated for the fastapi site

Database

  • Use the postgres database in render.com

  • Use the sqlaclchemy ORM to model and access the postgres

  • Models.py will model the postgres database

  • db.py will use models.py to query, and return data as a pydantic object that will be returned

  • It's important to note that the api endpoints should be as simple as possible, with db.py doing most of the work.

Background worker

  • A background worker will periodically scrape youtube and collect data on all videos to target channels. We will use yt-dlp for this task.
  • But don't worry too much about how this is scheduled.

First deliverables

  • Generate all the boilerplate listed in this document and then contact me for next steps.

About

Fastapi for the backend, npm based front end, runs in docker and can be fired up immediately in Render.com or DigitalOcean

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors