Merge branch 'main' of https://repos.hackathon.bz.it/2025-summer/team-1
This commit is contained in:
commit
dab8270bce
3 changed files with 18 additions and 18 deletions
|
@ -43,6 +43,6 @@ def join():
|
||||||
return {"success": True, "ws": f"/ws/{room_id}"}
|
return {"success": True, "ws": f"/ws/{room_id}"}
|
||||||
|
|
||||||
|
|
||||||
|
init_db()
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
init_db()
|
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
|
|
@ -2,5 +2,5 @@ import sqlite3
|
||||||
|
|
||||||
|
|
||||||
def get_connection():
|
def get_connection():
|
||||||
conn = sqlite3.connect("jukebox.db")
|
conn = sqlite3.connect(".data/jukebox.db")
|
||||||
return conn
|
return conn
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
ports:
|
ports:
|
||||||
- 5001:5000
|
- 5001:5000
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
- ./backend:/app
|
||||||
- ./.data/jukebox.sqlite3:/app/.data/jukebox.sqlite3
|
- ./.data:/app/.data
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build: ./frontend
|
build: ./frontend
|
||||||
ports:
|
ports:
|
||||||
- 5173:5173
|
- 5173:5173
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend:/app
|
||||||
- /app/node_modules
|
- /app/node_modules
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue