2.3 KiB
2.3 KiB
Django Port Workspace
This folder contains the rewrite target for the current FastAPI + React application. It is intended to be self-contained.
What is here
backend: Django project and domain appsfrontend: SvelteKit frontend with a local manual shadcn-style component layerdata/legacy: bundled legacy SQLite sources used byimport_legacy_datadocs/port-plan.md: migration strategy and scope
Self-contained data
The folder already contains:
- the live Django database at
backend/db.sqlite3 - the bundled legacy import sources at
data/legacy/cincin_phase1.sqliteanddata/legacy/dalcorso.sqlite
That means django-port no longer depends on the repo-root legacy databases for normal use or for re-running the importer.
Fresh Machine Setup
django-port is now structured so it can be pushed as its own repository and used without the rest of the original workspace.
Backend setup:
cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env
python manage.py migrate
python manage.py runserver
Frontend setup:
cd frontend
npm install
cp .env.example .env
npm run dev
Default local URLs:
- frontend:
http://localhost:5173 - backend API:
http://localhost:8000/api
Pushing As Its Own Repo
If this folder is moved into a new repository, include at minimum:
backend/frontend/data/legacy/docs/.gitignoreREADME.md
If you want the seeded app data on the destination machine, commit and push:
The repo does not need to include:
- any files outside
django-port - a local virtualenv
frontend/node_modulesfrontend/.svelte-kit
Environment Files
Example env files are included at:
What is intentionally not done
- No package installation
- No Svelte or Django bootstrapping commands
- No heavy build, dev-server, or migration runs
Everything needed for the port itself now lives under this folder.