Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jordaneremieff/starlette-svelte-example
- Owner: jordaneremieff
- License: mit
- Created: 2019-08-22T15:27:18.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-06-13T05:21:55.000Z (over 4 years ago)
- Last Synced: 2024-12-06T14:21:20.782Z (28 days ago)
- Topics: databases, javascript, python, sqlite, starlette, svelte
- Language: HTML
- Homepage:
- Size: 59.6 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.