Skip to content

danfimov/fastapi-event-driven

Repository files navigation

fastapi-event-driven

An example of application with event handlers.

You can see a list of possible handlers and contracts for them after run application on http://127.0.0.1:8080/swagger (with default settings).

Run

  1. Create .env file with variables or generate it by command:

    make env
  2. Install project requirements:

    make install
  3. Run Redis database with docker-compose:

    make db
  4. Run project:

    make run

Developer experience

List of possible commands:

make help

TODO

  1. Create tests for handlers and add Github Workflow for them;
  2. Add doc-strings for functions (and check them with linters);
  3. Add more linters (maybe add more flake8 plugins like flake8-cognitive-complexity etc.)
  4. Make async redis connection with asyncio-redis.

About

An example of application with event handlers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published