Add initial codebase
This commit is contained in:
parent
5fb2b8a791
commit
2bd81f859e
24 changed files with 2603 additions and 0 deletions
12
backend/Dockerfile
Normal file
12
backend/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM python:3.13.5-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["flask", "--app", "src.app", "run", "--debug", "--host=0.0.0.0"]
|
||||
# flask --app src.app run --host=0.0.0.0 --port=5001 --debug
|
2
backend/requirements.txt
Normal file
2
backend/requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Flask==3.1.0
|
||||
flask-cors
|
14
backend/src/app.py
Normal file
14
backend/src/app.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from flask import Flask
|
||||
from flask_cors import CORS
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
|
||||
|
||||
@app.route("/api")
|
||||
def index():
|
||||
return "hello from flask"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
Loading…
Add table
Add a link
Reference in a new issue