svelte-fastapi-template Svelte Themes

Svelte Fastapi Template

Svelte & Fastapi Website Template

Made because I don't like javascript and I like python.

To use

  1. Clone the repository
    git clone https://github.com/epic-person/svelte-fastapi-template.git
    cd svelte-fastapi-template
    
  2. Make your changes
    • Edit the Svelte app in frontend/src
    • Edit the FastAPI app in backend/main.py
    • Update the Dockerfile if necessary
  3. Use Docker to run the app
    docker-compose up --build
    
  4. Open your browser and go to http://localhost:80

[!NOTE]
When configuring you're firewall only forward port 80 (or 443 if using tls) and do not expose the api.

Top categories

Loading Svelte Themes