Skip to content

cntencra/fastapi-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poetry

fastapi-backend

This is the backend for my pest data visualisation Written using FastAPI and poetry for environment and version control

Clone the repo

cd ~/path_to_dir/

git clone https://github.com/user/fastapi-backend

Install dependencies,

poetry install

Set up the .env.* files

.env.dev
    PGDATABASE = bubble_plot
    PGHOST=localhost

.env.test
    PGDATABASE = bubble_plot_test
    PGHOST=localhost

Seed local dev database

poetry run seed-db

run tests

poetry run pytest -s tests

-s flag shows print output

run server

poetry run fastapi dev main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages