Change package.json to use poetry. Update to run successfully
This commit is contained in:
parent
a0110c552e
commit
63f0e82217
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 fastapi import FastAPI
|
||||||
|
|
||||||
|
from api.db.engine import engine
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"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",
|
"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",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue