Skip to content

lyxuansang91/python-boilerplate-api

Repository files navigation

FastAPI Project - Backend

Requirements

  • Docker
  • poetry for Python package and environment management

Installation

  1. Clone the repository:

    git clone https://github.com/lyxuansang91/python-boilerplate-api.git
    cd python-boilerplate-api
  2. Install dependencies using poetry:

    poetry install
  3. Start the application using Docker:

    docker-compose up --build

Running the Application

After starting the application, you can access the API documentation at:

http://localhost:8000/docs

Running Tests

To run tests, use the following command:

poetry run pytest

Project Structure

python-boilerplate-api/
├── app/
│   ├── api/
│   ├── core/
│   ├── models/
│   ├── schemas/
│   ├── services/
│   ├── main.py
│   └── ...
├── tests/
│   ├── ...
├── docker-compose.yml
├── Dockerfile
├── pyproject.toml
└── README.md

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages