Change package.json to use poetry. Update to run successfully
This commit is contained in:
parent
1bbaef1c60
commit
68e2137ef4
4 changed files with 5 additions and 3 deletions
0
api/__init__.py
Normal file
0
api/__init__.py
Normal file
0
api/db/__init__.py
Normal file
0
api/db/__init__.py
Normal file
|
|
@ -1,6 +1,7 @@
|
|||
from db.engine import engine
|
||||
from fastapi import FastAPI
|
||||
|
||||
from api.db.engine import engine
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue