From 8d115a87f67f9bb3d661eafc023515287b8eb6dc Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 3 Aug 2026 19:35:35 +0200 Subject: [PATCH] new commit --- .vscode/launch.json | 15 + backend/main.py | 18 +- database/calendar.db | Bin 49152 -> 49152 bytes frontend/index.html | 876 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 908 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 frontend/index.html diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6b46e48 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "type": "msedge", + "request": "launch", + "name": "Open index.html", + "file": "/home/ben/Desktop/calender/frontend/index.html" + } + ] +} \ No newline at end of file diff --git a/backend/main.py b/backend/main.py index af6904b..39c7e84 100644 --- a/backend/main.py +++ b/backend/main.py @@ -351,4 +351,20 @@ print() print("YOU CAN NOT START THE SERVER WITH PYTHON") print("start with:") print("$ bash start_server.sh") -print() \ No newline at end of file +print() + +from fastapi.middleware.cors import CORSMiddleware + +app = FastAPI( + title="Calendar API", + description="Room based agenda system", + version="1.0" +) + +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], # later vervangen door je domein + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], +) \ No newline at end of file diff --git a/database/calendar.db b/database/calendar.db index baee7cc2a9e636093d2f040549342f1f0f655bb8..0c70666aa71acff186f8ec8b56c43d04abd36dba 100644 GIT binary patch delta 643 zcmZo@U~Xt&o*>QWI8nx#(Q#wKLVi)c-wbSgn;7_Y`JeD#6DR74i!!n>sEPy4OG(X6Of1e#%*#kD&M=(p zBEL?Gfq{V!h@pUs{{#aY|5^tAz5Hu8b15w3SL0_^v}|rlzR;EK1)v0&Yh++#rfZ^WtYBbaWnh5JGchR2&(DQgwE1qYI+Fk!|29wnyyU;j ze}Vrn|2ClK7x7C0JIJkHK delta 432 zcmZo@U~Xt&o*>O=HBrWy(Q0GDLVjTe1_n01-wgbp_@D4!; zMPg*QdtN}4UX+hfX1Z6BdE#Uj`E?RJj4TYo;z_A_8HvRihFl<9`A;zL|J=-@u#kV^ z0$FY@W=TefU2Kyt>#MP|F$;47m2Wcm&(FxV$$>>dgq8mQ1OHe47yP&R&+;GO-^4$I ze+JO0&HR&R=S%Q1Fz^8lg@VZk@?C)H?=kTI=KsR~mj53AQ~qoG$M}zJ7Btw%Klx-m zA3FmB2T1Ycd-ckqK$?xWn}L5Nza4Kk-y=RB-upcJHY*CO;+cG)M{MGPt-L|ZJPe$i zva*_*nxe9kANSa^6%^$c>Z8*R``NDh?py*SW{ZE0S YXZa@va7=!>ULM(D&wx(D<*@xq09MS0t^fc4 diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..6270b6d --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,876 @@ + + + + + + +Calendar — Rooms & Events + + + + + +
+
+
+ +
+

Calendar

+

Rooms, events & RSVP's

+
+
+ +
+ + +
+ +
+
+ + +
+
+ + +
+ +
+ + + +

API:

+
+
+ + + + +
+
+ + + +