Skip to content

Quinntas/fastapi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Template

This is a template project for FastAPI, a modern web framework for building APIs with Python.

Installation

To install the project dependencies, make sure you have Poetry installed. You can install it via pip if you haven't already:

pip install poetry

Once you have Poetry installed, you can clone this repository and install the dependencies:

poetry install

Running the project

To run the project, you can use the following command:

poetry run uvicorn src.start.app:app --reload

This will start the FastAPI server and make it available at http://localhost:8000.

Project structure

The project is structured as follows:

  • src/core: Contains the core components of the project, such as controllers, middlewares, and DTOs.
  • src/shared: Contains the shared components of the project, such as the shared router and the health check controller.
  • src/start: Contains the main application file and the routes.

Contributing

Contributions are welcome! If you have any suggestions or improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

A opnionated FastAPI template using aiopg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages