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

FEATURE: Modularise this application #12

Closed
Vyvy-vi opened this issue Aug 9, 2021 · 0 comments · Fixed by #13
Closed

FEATURE: Modularise this application #12

Vyvy-vi opened this issue Aug 9, 2021 · 0 comments · Fixed by #13

Comments

@Vyvy-vi
Copy link
Owner

Vyvy-vi commented Aug 9, 2021

Having all the code in one place is messy, we can modularise the code a bit to make everything more readable and maintainable.
FastAPI supports APIRouters, which can help us in implementing a modular structure for the project.

Maybe this folder structure? -

.
└──  src
  ├── __init__.py
  ├── main.py
  ├── dependencies.py
  └── routers
    ├── __init__.py
    ├── coinflip.py
    ├── gifs.py
    ├── encouragements.py
    ├── jokes.py
    └── diceroll.py
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 a pull request may close this issue.

1 participant