Skip to content
Closed
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
1 change: 1 addition & 0 deletions .copier/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_commit": "0.8.0", "_src_path": "https://github.com/fastapi/full-stack-fastapi-template", "project_name": "FastAPI Project", "stack_name": "fastapi-project", "secret_key": "PkfmWteb3cwbeuycTRTC68CPhJQdA_5rh_JVx3GhvGc", "first_superuser": "[email protected]", "first_superuser_password": "admin", "smtp_host": "", "smtp_user": "", "smtp_password": "", "emails_from_email": "[email protected]", "postgres_password": "rfR80X-iie4omWPhzGrgKM6Jzu-xCc5hgYf0Rtwmln8", "sentry_dsn": ""}
1 change: 0 additions & 1 deletion .copier/.copier-answers.yml.jinja

This file was deleted.

14 changes: 8 additions & 6 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ FRONTEND_HOST=http://localhost:5173
# Environment: local, staging, production
ENVIRONMENT=local

PROJECT_NAME="Full Stack FastAPI Project"
STACK_NAME=full-stack-fastapi-project
CI=

PROJECT_NAME='FastAPI Project'
STACK_NAME=fastapi-project

# Backend
BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,https://localhost,https://localhost:5173,http://localhost.tiangolo.com"
SECRET_KEY=changethis
SECRET_KEY=PkfmWteb3cwbeuycTRTC68CPhJQdA_5rh_JVx3GhvGc
[email protected]
FIRST_SUPERUSER_PASSWORD=changethis
FIRST_SUPERUSER_PASSWORD=adminadmin

# Emails
SMTP_HOST=
Expand All @@ -36,10 +38,10 @@ POSTGRES_SERVER=localhost
POSTGRES_PORT=5432
POSTGRES_DB=app
POSTGRES_USER=postgres
POSTGRES_PASSWORD=changethis
POSTGRES_PASSWORD=rfR80X-iie4omWPhzGrgKM6Jzu-xCc5hgYf0Rtwmln8

SENTRY_DSN=

# Configure these with your own Docker registry images
DOCKER_IMAGE_BACKEND=backend
DOCKER_IMAGE_FRONTEND=frontend
DOCKER_IMAGE_FRONTEND=frontend
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode
.idea
node_modules/
/test-results/
/playwright-report/
Expand Down
28 changes: 0 additions & 28 deletions .vscode/launch.json

This file was deleted.

1 change: 1 addition & 0 deletions backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class ItemUpdate(ItemBase):
# Database model, database table inferred from class name
class Item(ItemBase, table=True):
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
# id: int = Field(default=None, primary_key=True)
title: str = Field(max_length=255)
owner_id: uuid.UUID = Field(
foreign_key="user.id", nullable=False, ondelete="CASCADE"
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
description = ""
requires-python = ">=3.10,<4.0"
dependencies = [
"fastapi[standard]<1.0.0,>=0.114.2",
"fastapi[standard]<1.0.0,>=0.115.12",
"python-multipart<1.0.0,>=0.0.7",
"email-validator<3.0.0.0,>=2.1.0.post1",
"passlib[bcrypt]<2.0.0,>=1.7.4",
Expand Down
29 changes: 15 additions & 14 deletions backend/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
# etc. To enable it, update .env, set:
# DOMAIN=localhost.tiangolo.com
proxy:
image: traefik:3.0
image: docker.arvancloud.ir/traefik:3.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.traefik.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
traefik:
image: traefik:3.0
image: docker.arvancloud.ir/traefik:3.0
ports:
# Listen on port 80, default for HTTP, necessary to redirect to HTTPS
- 80:80
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:

db:
image: postgres:12
image: docker.arvancloud.ir/postgres
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
Expand All @@ -20,7 +20,7 @@ services:
- POSTGRES_DB=${POSTGRES_DB?Variable not set}

adminer:
image: adminer
image: docker.arvancloud.ir/adminer
restart: always
networks:
- traefik-public
Expand Down
Loading
Loading