Skip to content

Commit

Permalink
Merge pull request #2 from theshohidul/improvement/version-upgrade
Browse files Browse the repository at this point in the history
Improvement/version upgrade
  • Loading branch information
theshohidul authored Jan 23, 2023
2 parents 2f088fb + 4debff9 commit eabd433
Show file tree
Hide file tree
Showing 60 changed files with 747 additions and 616 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ Some endpoints are added as demo purpose, like: auth, register and login.

## Dependencies
In this project [poetry](https://python-poetry.org/) is used as package dependency manager. Below python packages are used in this project.

- python = "^3.9"
- uvicorn = {version = "0.17.6", extras = ["standard"]}
- fastapi = {version = "0.80.0", extras = ["all"]}
- json-log-formatter = "0.4.0"
- SQLAlchemy = "^1.4.40"
- alembic = "^1.8.1"
- databases = {extras = ["aiomysql"], version = "^0.6.1"}

- python = "^3.11"
- uvicorn = {extras = ["standard"], version = "^0.20.0"}
- fastapi = {extras = ["all"], version = "^0.89.1"}
- json-log-formatter = "^0.5.1"
- alembic = "^1.9.2"
- databases = {extras = ["aiomysql"], version = "^0.7.0"}
- loguru = "^0.6.0"
- cryptography = "^38.0.1"
- bcrypt = "^4.0.0"
- PyJWT = "^2.5.0"
- sqlalchemy = "^1.4.46"
- pyjwt = "^2.6.0"
- mysqlclient = "^2.1.1"

## How To Run Locally

Expand All @@ -43,7 +44,7 @@ Then open a terminal inside the `/docker` folder and run the below command in th
```
After docker containers are up, you can access the application in: http://localhost:8080

Then exec inside the app container, and go to /app/core/db/migrations - run below command:
Then exec inside the docker app container and activate the venv, and go to /app/core/db/migrations - run below command:
```bash
alembic upgrade head
```
Expand Down
3 changes: 2 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__
.DS_Store
.DS_Store
.venv
Binary file modified app/__pycache__/main.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/__pycache__/auth_backend.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/__pycache__/routes.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/__pycache__/service.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/__pycache__/view.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/schemas/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/schemas/__pycache__/errors.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/schemas/__pycache__/exceptions.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/schemas/__pycache__/requests.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/auth/schemas/__pycache__/responses.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/__pycache__/routes.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/__pycache__/service.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/__pycache__/view.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/schemas/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/schemas/__pycache__/requests.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/register/schemas/__pycache__/responses.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/shared/__pycache__/role_checker.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/__pycache__/repository.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/__pycache__/routes.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/__pycache__/service.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/__pycache__/view.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/schemas/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/schemas/__pycache__/exceptions.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/schemas/__pycache__/requests.cpython-39.pyc
Binary file not shown.
Binary file modified app/api/v1/user/schemas/__pycache__/responses.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/__pycache__/configs.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/__pycache__/utils.cpython-39.pyc
Binary file not shown.
5 changes: 2 additions & 3 deletions app/core/configs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os
import secrets
from functools import lru_cache
from typing import List

from pydantic import BaseSettings, validator
from functools import lru_cache


class Settings(BaseSettings):
Expand Down
Binary file modified app/core/db/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/db/__pycache__/base.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/db/__pycache__/db.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/enums/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/enums/__pycache__/exception_status.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/enums/__pycache__/response_status.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/enums/__pycache__/status_type.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/exceptions/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/exceptions/__pycache__/base.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/logging/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/logging/__pycache__/logger.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/logging/__pycache__/schemas.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/middlewares/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/middlewares/__pycache__/auth.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/middlewares/__pycache__/logging.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/middlewares/__pycache__/request_id.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/schemas/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file modified app/core/schemas/__pycache__/base.cpython-39.pyc
Binary file not shown.
Loading

0 comments on commit eabd433

Please sign in to comment.