Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jordaneremieff/starlette-svelte-example

Example project using Svelete with Starlette
https://github.com/jordaneremieff/starlette-svelte-example

databases javascript python sqlite starlette svelte

Last synced: 14 days ago
JSON representation

Example project using Svelete with Starlette

Awesome Lists containing this project

README

        

# starlette-svlete-example

An example of using [Svelte](https://svelte.dev/) with [Starlette](https://www.starlette.io/) and [Databases](https://www.encode.io/databases/).

## Setup

From the `backend/` directory, create a new virtual environment, install the dependencies, and create the database:

```shell
python3.7 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
python init_db.py
```

From the `frontend/` directory, install the dependencies:

```shell
npm install
```

## Running

### Backend

From the `backend` directory (using the virtual environment), enter the following:

```shell
uvicorn app:app
```

### Frontend
From the `frontend/` directory, enter the following:

```shell
npm run dev
```

Then visit http://localhost:5000.