A full stack template for an app and web application with backend. The repository contains:
- 🖥️ A frontend build in Typescript with SolidJS and daisyui:
- 🗄️ A backend built in Python with Flask and SQLAlchemy:
- 🧍 User login management with cookies using Flask-Login
- 💿 Database migrations using Alembic
- 🧪 Tests with pytest
- 📝 Code formatting with ruff
- 🚀 CI/CD with pipelines for:
- 📝 Automatic linters for checking code format
- 🧪 Running tests
- 🐳 Building Docker containers
- 💻 Automated single VPS deployment
The template can be cloned into a new repository with the 'Use this template' button at the right top of this repository, or by using git clone https://github.com/Swopper050/solid-flask-web-app-template.git
.
In order to run the project locally you need to:
When you have all of this installed, setup all docker services:
cd solid-flask-web-app-template/
make docker_up
Setup the ui:
cd ui/
make deps
make server
Setup the api:
cd api/
python -m venv .env
make deps
make fixtures
make server
Now you can visit the local web application at http://localhost:5173
This project currently supports deployment onto a single VPS (frontend, backend and database all running on that VPS). For more information on how to do this, see the deployment docs.