py-svelte-template

Py Svelte Template

Full-stack template with Python FastAPI, Svelte, SQLite database and session handling

py-svelte-template

A full-stack web application template with Python FastAPI, Svelte, SQLite database, session handling and integration testing.

Features

  • Uses SvelteKit for the frontend
  • Uses FastAPI for the API
  • Uses Pydantic for data validation
  • Uses SQLModel for database models and migrations
  • Uses SQLite for the database
  • Prioritizes asynchronous code for better performance (with aiosqlite)
  • Contains a basic user authentication system with login and registration
    • Includes password hashing with PBKDF2 using hashlib
  • Contains hurl tests for the API (in tests/)

Usage

It is recommended to use Nix with Flakes for development. If you have Nix installed, you can simply run nix develop to enter a development environment with all the necessary dependencies.

Once you have the development environment set up, you can run the following commands:

foreman start

License

This project is licensed under the terms of the ISC license. See the LICENSE file for details.

Top categories

Loading Svelte Themes