Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,45 +42,25 @@
"check-types": "npx turbo run check-types"
},
"devDependencies": {
"@babel/core": "7.24.5",
"@babel/preset-env": "7.24.5",
"@babel/runtime": "7.24.5",
"@compodoc/compodoc": "1.1.26",
"@dbbs/eslint-config": "*",
"@dbbs/tsconfig": "*",
"@jest/globals": "29.7.0",
"@nestjs/cli": "11.0.4",
"@nestjs/schematics": "11.0.1",
"@nestjs/testing": "11.0.10",
"@react-native/babel-preset": "0.75.4",
"@react-native/eslint-config": "0.75.4",
"@react-native/metro-config": "0.75.4",
"@testing-library/jest-dom": "6.6.2",
"@testing-library/react": "15.0.7",
"@testing-library/react-hooks": "8.0.1",
"@testing-library/react-native": "12.5.3",
"@tsconfig/node-lts": "20.1.3",
"@turbo/gen": "2.2.3",
"@types/aws-lambda": "8.10.147",
"@types/capture-console": "1.0.5",
"@types/express": "5.0.0",
"@types/jest": "29.5.14",
"@types/lodash.isobject": "3.0.9",
"@types/node": "22.13.5",
"@types/passport-jwt": "4.0.1",
"@types/react": "18.3.3",
"@types/react-test-renderer": "18.3.0",
"@types/supertest": "6.0.2",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitejs/plugin-react": "4.3.1",
"aws-cdk": "2.1000.3",
"aws-cdk-lib": "2.181.0",
"babel-plugin-module-resolver": "5.0.2",
"capture-console": "1.0.2",
"constructs": "10.4.2",
"cypress": "13.15.1",
"dotenv": "16.4.7",
"dotenv-cli": "8.0.0",
"eslint": "8.57.0",
Expand All @@ -100,13 +80,8 @@
"eslint-plugin-turbo": "2.2.3",
"husky": "9.1.7",
"inquirer": "12.4.2",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fetch-mock": "3.0.3",
"jest-mock": "29.7.0",
"lint-staged": "15.2.10",
"prettier": "3.3.3",
"react-test-renderer": "18.3.1",
"rimraf": "6.0.1",
"rollup-plugin-visualizer": "5.14.0",
"serverless": "3.39.0",
Expand All @@ -117,8 +92,6 @@
"serverless-plugin-aws-alerts": "1.7.5",
"serverless-plugin-monorepo": "0.11.0",
"serverless-plugin-optimize": "4.2.1-rc.1",
"supertest": "7.0.0",
"ts-jest": "29.2.6",
"ts-loader": "9.5.2",
"ts-node": "10.9.2",
"tslib": "2.8.1",
Expand All @@ -127,12 +100,6 @@
"vite": "5.4.1",
"webpack": "5.95.0"
},
"resolutions": {
"@babel/core": "7.24.5",
"@babel/preset-env": "7.24.5",
"@babel/runtime": "7.24.5",
"metro": "0.81.0"
},
"packageManager": "yarn@4.2.2",
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
Expand Down
6 changes: 6 additions & 0 deletions python/apps/admin-panel-back-end/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
APP_HOST=<APP_HOST>
APP_PORT=<APP_PORT>
APP_RELOAD=<APP_RELOAD>
APP_LOG_LEVEL=<APP_LOG_LEVEL>
APP_ENVIRONMENT=<APP_ENVIRONMENT>
APP_WORKERS_COUNT=<APP_WORKERS_COUNT>
66 changes: 66 additions & 0 deletions python/apps/admin-panel-back-end/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
## Name: fast-api-server

## Description

The `fast-api-server` application serves as an example of a generated FastAPI application, ready for release, showcasing a basic starting point for web development projects.

## Usage

Generate a new FastAPI application using the following npx command.

```bash
npx turbo gen fast-api-server
```

Run created FastAPI application using the following command.

```bash
target=fast-api-server yarn dev
```

## Features

The DBBS Pre-Built Solutions enables the generation of a FastAPI application template with opinionated settings. This simplifies and accelerates the initial stages of development while promoting code consistency across different applications. Additionally, it lays the groundwork for streamlining updates to the common aspects of applications when the pre-built solutions undergoes updates.

## Feature Keywords

- fast-api-server-bootstrap

## Language and framework

- Python
- FastAPI

## Type

- Application

## Tech Category

- Back-end

## Domain Category

- Common

## License

The DBBS Pre-Built Solutions is open-source software licensed under the [MIT License](LICENSE).

## Authors and owners

- bilenko-ha1305

## Links

[FastAPI documentation](https://fastapi.tiangolo.com/)
[Alembic documentation](https://alembic.sqlalchemy.org/en/latest/)

## External dependencies

- fastapi
- pydantic-settings
- uvicorn
- SQLAlchemy
- asyncpg
- alembic
33 changes: 33 additions & 0 deletions python/apps/admin-panel-back-end/alembic.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[alembic]
script_location = src/db/migrations
file_template = %%(year)d-%%(month).2d-%%(day).2d-%%(hour).2d-%%(minute).2d_%%(rev)s
prepend_sys_path = .
output_encoding = utf-8
# truncate_slug_length = 40
# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
qualname =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
14 changes: 14 additions & 0 deletions python/apps/admin-panel-back-end/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "@dbbs/admin-panel-back-end",
"version": "1.0.0",
"description": "DBBs FastAPI Server for admin panel",
"type": "module",
"main": "../admin-panel-back-end/src/main.py",
"private": true,
"scripts": {
"dev": "poetry run python -m src",
"lint": "poetry run ruff check .",
"build": "echo \"no build specified\" && exit 0",
"install:deps": "poetry install"
}
}
Loading