An example of using Svelte with Starlette and Databases.
From the backend/
directory, create a new virtual environment, install the dependencies, and create the database:
python3.7 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
python init_db.py
From the frontend/
directory, install the dependencies:
npm install
From the backend
directory (using the virtual environment), enter the following:
uvicorn app:app
From the frontend/
directory, enter the following:
npm run dev
Then visit http://localhost:5000.