Boring web framework to get stuff done. A framework on top of frameworks.
Includes some functionality for a basic public micro-blogging app.
-
Download and unzip project from https://github.com/letam/web-framework-2025/archive/refs/heads/main.zip
-
Open terminal and change present directory to be the project directory
-
Run the setup script:
./scripts/setup.sh
-
Start the development servers:
- In one terminal:
uv run python server/manage.py runserver_plus
- In another terminal:
cd app && bun dev
- In one terminal:
The web app during development is served via http://localhost:8000
-
Follow above steps to install Python and project dependencies for both backend and frontend servers
-
Build app for production
./scripts/build-prod.sh
- Set app name in project (Replace your_app_name with an actual app name):
sed -i.bak 's/FLY_APP_NAME/your_app_name/g' server/config/settings.py && find scripts/ -type f -name "deploy_*" -exec sed -i.bak 's/FLY_APP_NAME/your_app_name/g' {} +
- Run app deployment script:
./scripts/deploy-fly.io-sqlite.sh <app_name>
- Set app name in project (Replace your_app_name with an actual app name):
sed -i.bak 's/FLY_APP_NAME/your_app_name/g' server/config/settings.py && find scripts/ -type f -name "deploy_*" -exec sed -i.bak 's/FLY_APP_NAME/your_app_name/g' {} +
- Run app deployment script:
./scripts/deploy-fly.io-postgres.sh <app_name>
TODO