Skip to content

A full stack template for a app and web application with backend

Notifications You must be signed in to change notification settings

Swopper050/solid-flask-web-app-template

Repository files navigation

Solid flask web app template

A full stack template for an app and web application with backend. The repository contains:

  • 🖥️ A frontend build in Typescript with SolidJS and daisyui:
    • 🪪 Registering and logging in with user management
    • 🔑 2 Factor Authentication
    • 🔓 Password recovery with email
    • ✅ User email verification
    • 🌗 Dark theme support
    • 📜 Support for translations, and easily add your own language
    • 📝 Code formatting with ESLint and Prettier
  • 🗄️ 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

Landing page

Landing page

Register page

Landing page

Register page

Landing page

Installation

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

Deployment

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.

About

A full stack template for a app and web application with backend

Resources

Stars

Watchers

Forks

Packages

No packages published