FLYAI4 / ArtAPI-FastAPI

프로젝트 API 백엔드 서버 repo
1 stars 1 forks source link

ArtAPI-FastAPI


Getting Started

To run the service, follow the instructions below:

  1. Clone the repository:
git clone https://github.com/robert-min/ArtCore-FastAPI.git
  1. Navigate to the project directory:
cd ArtCore-FastAPI
  1. Install the dependencies:
pip install -r requirements.txt
  1. Run the server:
    • add src/libs/.env
python app.py


Contributing

Contributions are welcome! If you would like to contribute to ArtCore-Go, please follow these steps:

  1. Fork the repository.

  2. Create a new branch:

git checkout -b my-feature
  1. Make your changes and commit them:
git commit -m "Add my feature"
  1. Push to your forked repository:
git push origin my-feature
  1. Open a pull request.


codecov

code coverage Report

---------- coverage: platform linux, python 3.10.12-final-0 ----------
Name                                            Stmts   Miss  Cover
-------------------------------------------------------------------
app.py                                             14     14     0%
src/__init__.py                                     0      0   100%
src/apps/__init__.py                               12      0   100%
src/apps/account/__init__.py                        0      0   100%
src/apps/account/controller.py                     15      0   100%
src/apps/account/model.py                          13      0   100%
src/apps/account/repository.py                     44      6    86%
src/apps/account/schema.py                         10      0   100%
src/apps/account/service.py                        22      0   100%
src/apps/user/controller.py                        10      0   100%
src/apps/user/model.py                              4      0   100%
src/apps/user/repository.py                        10      2    80%
src/apps/user/service.py                           16      0   100%
src/libs/__init__.py                                2      0   100%
src/libs/api/error_code.py                         11      0   100%
src/libs/api/error_handler.py                      13      2    85%
src/libs/api/exception.py                          13      0   100%
src/libs/api/util.py                               35      0   100%
src/libs/api/validator.py                          23      0   100%
src/libs/cipher.py                                 17      0   100%
src/libs/db_manager.py                             23      2    91%
src/libs/token.py                                  10      0   100%
tests/apps/account/test_account_controller.py      53      0   100%
tests/apps/account/test_account_repository.py      45      0   100%
tests/apps/account/test_account_service.py         69      0   100%
tests/apps/user/test_user_controller.py            32      0   100%
tests/apps/user/test_user_repository.py            27      0   100%
tests/apps/user/test_user_service.py               24      0   100%
tests/libs/test_encrypt.py                         26      0   100%
tests/libs/test_error_code.py                       3      0   100%
tests/libs/test_util.py                            24      0   100%
-------------------------------------------------------------------
TOTAL                                             620     26    96%


graph