Skip to content

dimona-loves-animals/api

Repository files navigation

API

Source code for https://api.dimonalovesanimals.org

Requirements:

  • Python 3.11.4

create a .env file:

MAILCHIMP_API_KEY=...

Usage:

docker-compose up -d

It will be auto exposed by traefik

Development

Running in python 3.11.4:

pip install -r requirements.txt -r requirements-dev.txt
pre-commit install
uvicorn main:app --reload

or you can create a docker-compose.override.yml file:

version: '3.2'

services:
  api:
    command: [ "--port", "80", "--host", "0.0.0.0", "--reload" ]
    volumes:
      - "./main.py:/usr/src/app/main.py"
    ports:
      - "8000:80"

and run docker-compose up --build with auto reload

then, visit: http://localhost:8000

> {"Hello":"World"}

Swagger docs will be available at: http://localhost:8000/docs or: http://localhost:8000/redoc

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published