Skip to content

Commit f185145

Browse files
committed
Hard working with project 😰
1 parent 2411ec9 commit f185145

54 files changed

Lines changed: 2159 additions & 515 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env-example

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#!/bin/bash
2+
3+
########################################
4+
# ENVIRONMENT
5+
########################################
6+
ENV=dev
7+
DEBUG=true
8+
9+
########################################
10+
# APPLICATION
11+
########################################
12+
APP_NAME="Marketplace API"
13+
APP_VERSION="1.0.0"
14+
APP_DESCRIPTION="An e-commerce marketplace API built with FastAPI."
15+
API_V1_PREFIX=/api/v1
16+
SERVER_HOST=0.0.0.0
17+
SERVER_PORT=8000
18+
RELOAD=true
19+
LOG_LEVEL=INFO
20+
21+
########################################
22+
# CORS
23+
########################################
24+
CORS_ORIGINS=["*"]
25+
26+
########################################
27+
# JWT
28+
########################################
29+
SECRET_KEY=CHANGE_ME
30+
JWT_ALGORITHM=HS256
31+
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=11520
32+
JWT_REFRESH_TOKEN_EXPIRES_DAYS=7
33+
PASSWORD_RESET_TOKEN_EXPIRE_MINUTES=15
34+
35+
########################################
36+
# DATABASE
37+
########################################
38+
DB_ENGINE=postgres
39+
DB_NAME=your_db
40+
DB_HOST=localhost
41+
DB_PORT=5432
42+
DB_USER=postgres
43+
DB_PASSWORD=CHANGE_ME
44+
45+
########################################
46+
# BROKER (redis | rabbitmq)
47+
########################################
48+
BROKER=redis
49+
50+
########################################
51+
# REDIS
52+
########################################
53+
REDIS_HOST=localhost
54+
REDIS_PORT=6379
55+
REDIS_DB=0
56+
57+
########################################
58+
# RABBITMQ
59+
########################################
60+
RABBITMQ_USER=guest
61+
RABBITMQ_PASSWORD=guest
62+
RABBITMQ_HOST=localhost
63+
RABBITMQ_PORT=5672
64+
RABBITMQ_VHOST=/
65+
66+
########################################
67+
# EMAIL CONFIG
68+
########################################
69+
EMAIL_FROM=admin@example.com
70+
SMTP_HOST=smtp.gmail.com
71+
SMTP_PORT=587
72+
SMTP_USER=your_smtp_login
73+
SMTP_PASSWORD=your_smtp_password
74+
SMTP_TLS=true

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Marketplace
2+
3+
> E-commerce application in FastAPI

docs/plan.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
| Категория | Технология |
2+
| ----------- | -------------------------------------- |
3+
| CI/CD | GitHub Actions, Docker Hub, SSH Deploy |
4+
| Мониторинг | Prometheus, Grafana, Sentry |
5+
| Логирование | structlog / loguru |
6+
| Кэш | Redis |
7+
| Архитектура | Service + Repository pattern |
8+
| Тесты | pytest + asyncio + factory-boy |
9+
| Security | JWT + Refresh + Roles + Rate limit |
10+
| Докеризация | Dockerfile + Compose |
11+
| Workflow | pre-commit hooks |
12+
| Уведомления | Telegram, Slack, Email |
13+
| AI | Qdrant + Embeddings |

0 commit comments

Comments
 (0)