Skip to content

jppradoleal/dagger

Repository files navigation

Dagger

Dagger its a CRUD to manage liquor stores, it uses GIS to allow the user to search for nearby liquor stores. The project also uses Github Actions to enforce codestyle, lint, apply integration tests, upload the docker image, and (futurely) define the infrastructure using terraform, ArgoCD and K8s.

Running the project

You're going to need a running PostGIS image, you can also run the image with sqlite by passing "sqlite://" as DATABASE_URL, but the GIS part will not work.

Run the latest image listening on port 8000.

docker run -e ENV=prod -e DATABASE_URL=postgresql://username:password@localhost:5432/dagger --name dagger -p 8000:8000 ghcr.io/jppradoleal/dagger:latest

Also, it's possible to run "docker-compose up" and get a development workspace.

Dependencies

  • FastAPI
  • SQLAlchemy
  • Alembic
  • JWT
  • Docker
  • Kubernetes
  • Helm
  • Terraform
  • AWS

Dev dependencies

  • Ruff
  • Black
  • Isort
  • Github Actions
  • Pytest
  • Poetry

TODO

  • Basic API setup
  • Pre-commit setup
  • Docker setup
  • SQLAlchemy + Alembic setup
  • Auth endpoint
  • Auth tests
  • CI Pipeline setup
  • Create adega endpoint
  • List adegas endpoint
  • Search adegas endpoint
  • Authentication
  • Kubernetes cluster definition
  • WIP: Pulumi infrastructure definition
  • CD Pipeline setup
  • Improve README

How to run this project

Run the latest image using sqlite, listening on port 8000

docker run -e ENV=prod -e DATABASE_URL=sqlite:// --name dagger -p 8000:8000 ghcr.io/jppradoleal/dagger:latest

About

A API that lists adegas(cellars)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages