agregando fastapi
This commit is contained in:
5
apps/api/Containerfile
Normal file
5
apps/api/Containerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM python:3.11-slim
|
||||
COPY . /home
|
||||
WORKDIR /home
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
BIN
apps/api/code/__pycache__/main.cpython-311.pyc
Normal file
BIN
apps/api/code/__pycache__/main.cpython-311.pyc
Normal file
Binary file not shown.
7
apps/api/code/main.py
Normal file
7
apps/api/code/main.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return("Hola Mundo")
|
||||
8
apps/api/requirements.txt
Normal file
8
apps/api/requirements.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
fastapi
|
||||
redis
|
||||
gunicorn
|
||||
postgres
|
||||
uvicorn
|
||||
SQLAlchemy
|
||||
pydantic
|
||||
databases
|
||||
Reference in New Issue
Block a user