Calender System is a Flask-based event scheduling application that allows users to schedule events, check room availability, and manage room details.
-
Create Event:
- Endpoint:
/create_event - Method: POST
- Create a new event by providing parameters such as
event,coordinator,date,start_time,end_time,meeting_room, andattendee_list.
- Endpoint:
-
Get Event Details:
- Endpoint:
/Event(GET all events) or/Event/<int:id>(GET specific event by ID) - Method: GET
- Retrieve details of all events or a specific event by providing its ID.
- Endpoint:
-
Room Management:
- Endpoint:
/Rooms - Method: POST (Add new room) or GET (Get all rooms)
- Add a new meeting room or retrieve details of all meeting rooms.
- Endpoint:
The application uses SQLite as its database, and the database file is named database.db. The database contains two tables:
-
Event Table:
- Columns:
id,event,coordinator,date,start_time,end_time,meeting_room,attendee_list.
- Columns:
-
Rooms Table:
- Columns:
id,room_name.
- Columns:
The application checks room availability before scheduling a new event, ensuring no conflicts for the specified meeting room, date, and time.
- Install dependencies:
pip install -r requirements.txt
- Clone the repository:
git clone https://github.com/saddam-sde/calender_system.git cd calender_system
- Install dependencies:
pip install -r requirements.txt
python main.py