Change package.json to use poetry. Update to run successfully

This commit is contained in:
Joey Yakimowich-Payne 2023-08-09 11:15:15 -06:00
commit 68e2137ef4
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
4 changed files with 5 additions and 3 deletions

0
api/__init__.py Normal file
View file

0
api/db/__init__.py Normal file
View file

View file

@ -1,6 +1,7 @@
from db.engine import engine
from fastapi import FastAPI
from api.db.engine import engine
app = FastAPI()

View file

@ -3,9 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"fastapi-dev": "pip3 install -r requirements.txt && python3 -m uvicorn api.index:app --reload",
"fastapi-preinstall": "poetry install; echo 1",
"fastapi-dev": "poetry shell && python3 -m uvicorn api.index:app --reload",
"next-dev": "next dev",
"dev": "concurrently \"pnpm run next-dev\" \"pnpm run fastapi-dev\"",
"dev": "concurrently \"pnpm run next-dev\" \"pnpm fastapi-preinstall\" \"pnpm run fastapi-dev\"",
"build": "next build",
"start": "next start",
"lint": "next lint"