https://github.com/nemanjam/githubcities
https://github.com/nemanjam/githubcities
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nemanjam/githubcities
- Owner: nemanjam
- License: mit
- Created: 2025-05-08T12:34:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-06-11T17:58:31.000Z (7 months ago)
- Last Synced: 2025-06-19T03:05:55.795Z (7 months ago)
- Language: Python
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Githubcities
## Local setup dev
```bash
# Navigate to project root
cd ~/Desktop/githubcities
# Run Postgres database
docker compose up -d
# Navigate to backend folder
cd ./backend
# Create a virtual environment
uv venv
# Activate the environment
source .venv/bin/activate
# Sync and install dependencies
uv sync
# Run database migrations
alembic upgrade head
# Start the FastAPI development server
uvicorn app.main:app --reload
```
## Development URLs
```bash
# Frontend (todo)
http://localhost:5173
# Backend (root 404 route)
http://localhost:8000
# Automatic Interactive Docs (Swagger UI)
http://localhost:8000/docs
# Automatic Alternative Docs (ReDoc)
http://localhost:8000/redoc
# Adminer
http://localhost:8080
# Traefik UI
http://localhost:8090
# MailCatcher
http://localhost:1080
```
## Docker setup dev
```bash
# Create a virtual environment
uv venv
# Activate the environment
source .venv/bin/activate
# Build the containers
docker compose build
# Start the database container (replace dbcontainername with your DB service name)
docker compose up -d dbcontainername
# Run Alembic migrations (replace containername with your app container name)
docker compose run containername --rm alembic head
# Start all services
docker compose up
# In Docker backend available on 8080, not 8000
http://localhost:8080/docs
```