Skip to content

Postgres to store and FastAPI to serve articles from eksiseyler.com

Notifications You must be signed in to change notification settings

frknltrk/eksiseyler_api

Repository files navigation

eksiseyler api

Usage

Random Article

$ curl -X GET https://eksiseyler-api.fly.dev/articles/random

All Articles

$ curl -X GET https://eksiseyler-api.fly.dev/articles/all

Build & Run

$ git clone https://github.com/frknltrk/eksiseyler_api.git && cd eksiseyler_api/
# uncomment and update the DATABASE_URL environment variable in the Dockerfile with your postgres db credentials
# uncomment the line `# run_initial_etl()` in the etl.py file
$ docker build
$ docker run

Deploy

Documentation

Platforms

  • fly.io (used & recommended)
  • render.com
  • railway.app
  • Heroku

Development

Useful Resources

Troubleshooting