Skip to content

JEONGBYEONGDU/hexagonal-fastapi-jobboard

 
 

Repository files navigation

FastAPI JobBoard with Hexagonal Architecture - WIP - Work In Progress

JobBoard project with FastAPI using Hexagonal Architecture.

Rewritten version of: JobBoard

About Hexagonal Architecture

You can read it from original author:

The Pattern: Ports and Adapters

Why Hexagonal?

  • Easy to implement.
  • Highly testable and maintainable code.
  • Dependency Inversion, Dependency Injection and SRP in the club.
  • Centered domain knowledge.
  • The original author is quite friendly :)

Project folder structure

How to install?

We use flit for the installation:

Install flit:

  • pip install flit==3.7.1

Installing project for development

make install-dev or flit install --env --deps=develop --symlink

Installing for general showcase

make install or flit install --env --deps=develop

How to run?

make run

or

uvicorn src.jobboard.adapters.entrypoints.application:app --reload

Run all tests in verbose

make test or pytest -svv

Run all tests with html coverage

make test-cov or pytest --cov-report html --cov=src tests

Database migrations

Generated as:

make migrations

or

alembic -c src/jobboard/adapters/db/alembic.ini revision --autogenerate

Migrate:

make migrate

or

alembic -c src/jobboard/adapters/db/alembic.ini upgrade head

About

JobBoard project with FastAPI using Hexagonal Architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.1%
  • HTML 13.5%
  • Makefile 2.2%
  • Mako 0.6%
  • Dockerfile 0.3%
  • Shell 0.2%
  • JavaScript 0.1%