Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pydantic 2, better cli, docker-compose #71

Merged
merged 15 commits into from
Oct 7, 2023
Merged

Pydantic 2, better cli, docker-compose #71

merged 15 commits into from
Oct 7, 2023

Conversation

mike-pisman
Copy link
Member

@mike-pisman mike-pisman commented Oct 7, 2023

📑 Description

This pull request include several updated

  • The project has been reconfigured to support new Pydantic 2.4 version, which involved a few changes like adding new module pydantic-settings. This also allowed bumping the version of other dependencies like beanie, fastapi, and others.
  • The cli entry point has changed. Now to run the application, it's require to specify a run command.
    Example: unipoll-api run --host=0.0.0.0 --reload. Each command has it own help, for example, to get help with run command you can run unipoll-api run --help.
    The available commands:
    • unipoll-api run - will run the server, it accepts all the old optional arguments(host, port, reload)
    • unipoll-api setup - is the new command which interactively asks user for input to setup the application and save it to .env file
    • unipoll-api get-openapi - generates an OpenAPI JSON schema and saves it in the openapi.json file. This will be convenient later for use with postman CI action.
  • A docker-compose.yaml was added. Using docker compose, the user can create a stack of a MongoDB server and the API application.

@mike-pisman mike-pisman merged commit 44d071a into main Oct 7, 2023
2 checks passed
@mike-pisman mike-pisman deleted the development branch October 8, 2023 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant