- Node.js
- Python
- MySQL Server
git clone https://github.com/aloysiustayy/ICT2216-RoomBooker.git
Create a local database schema called "roombooker"
in your MySQL server.
Update the MySQL login credentials in backend/sql_app/database.py
file to match your local setup.
Create and activate a virtual environment in the root folder:
python -m venv .venv
source .venv/bin/activate # On Windows, use .venv\Scripts\activate
Install the required Python packages:
pip install -r backend/requirements.txt
Install the required Node Modules:
cd roombooker/material-ui-nextjs
npm install
Execute the run.bat
file to start both the backend (FastAPI) on port 8000 and the frontend (Next.js) on port 3000.
Once both the backend and frontend are running, execute the two SQL scripts located in backend/sql_scripts
in your roombooker database.
- Ensure your MySQL server is running and accessible before starting the application.
- If you encounter any issues, check the logs for more detailed error messages and adjust configurations accordingly.