Boring web framework to get stuff done. A framework on top of frameworks.
Includes some functionality for a basic public micro-blogging app.
-
Install latest Python binary
-
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
-
Create and activate python virtual environment for the project
python3 -m venv venv source venv/bin/activate
-
Install project requirements
pip install -U pip pip install -r requirements.txt
-
Run project migrations
python server/manage.py migrate
-
Run other setup scripts
python server/manage.py init_users
-
Run the development server
python server/manage.py runserver
-
In another terminal session, change into frontend app directory
cd app
-
Install npm packages:
npm i
-
Create
.env
file for frontend codecp .env.development.local.sample .env
-
Start frontend dev server
npm run dev
-
Follow above steps to install Python and project dependencies for both backend and frontend servers
-
Build app for production
./build-prod
- 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
TODO