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
8 changes: 0 additions & 8 deletions .env

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
LICENSE
README.md
.env
.env.prod
.env.dev
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

59 changes: 0 additions & 59 deletions README.md

This file was deleted.

34 changes: 0 additions & 34 deletions infra/docker-compose.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ COPY . .
EXPOSE 8000

# ---- run server ----
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]
38 changes: 38 additions & 0 deletions src/infrastructure/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

services:
client:
build:
context: ../client/certstack
dockerfile: ../../infrastructure/Dockerfile.client
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
volumes:
- ../client/certstack:/app
- /app/node_modules
command: npm run dev
depends_on:
- server

server:
build:
context: ../server
dockerfile: ../infrastructure/Dockerfile.server
ports:
- "8000:8000"
command: ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]
env_file:
- ../server/.env.dev
volumes:
- type: bind
source: ../server
target: /app
depends_on:
- redis

redis:
image: redis:7
ports:
- "6379:6379"

File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions src/server/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ---- Database ----
DB_USER=
DB_PASSWORD=
DB_HOST=aws-0-us-west-2.pooler.supabase.com
DB_PORT=5432
DB_NAME=postgres
# ---- Auth / JWT ----
JWT_KEY=

#create on your local repo under the server folder: .env.dev and .env.prod . fill them out with the values above.
Binary file added src/server/__pycache__/server.cpython-311.pyc
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pydantic import BaseModel
from typing import Optional
from jwt_auth.jwt_auth import decode_access_token
from business_logic import (
from controllers.example_controller import (
AppError,
sample_function
)
Expand Down
Loading
Loading