Compare commits

...

3 Commits

Author SHA1 Message Date
292c172812 pep-8 docstrings 2024-04-12 17:30:02 -04:00
d6090f4327 exclude venv directory 2024-04-12 17:29:32 -04:00
4c3cb9315a add fastapi 2024-04-12 17:12:37 -04:00
5 changed files with 32 additions and 0 deletions

1
backend/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.venv/

10
backend/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM python:alpine
WORKDIR /app/backend
COPY ./requirements.txt /app
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY ./src /app/backend
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]

7
backend/README.md Normal file
View File

@ -0,0 +1,7 @@
# Daily Agenda App Backend
Written in FastAPI.
```shell
docker build -t agenda-backend .
docker run --rm agenda-backend
```

4
backend/requirements.txt Normal file
View File

@ -0,0 +1,4 @@
fastapi
uvicorn[standard]
sqlalchemy
pydantic

10
backend/src/main.py Normal file
View File

@ -0,0 +1,10 @@
"""Agenda App"""
from fastapi import FastAPI
app = FastAPI()
@app.get('/')
async def home():
"""Dummy route"""
return 'homepage'