An online portal developed in Django to manage CAL BPHC's instrument booking process.
gitpython>= 3.10uvdocker-composeorMySQL
-
Clone the repository
git clone https://github.com/CAL-BPHC/onlineCAL.git
-
Install dependencies
cd onlineCAL uv sync -
Setup the database
-
The project uses MySQL as the database. You can either install MySQL or use the docker-compose file provided.
-
If you are using MySQL, create a database that you will use for the project.
-
If you are using the docker-compose file, run the following command
docker-compose -f server/docker-compose.yaml up
-
Create a
db.conffile in theserverdirectory following the format indb.conf.example. Use the same details if you're using Docker; otherwise, adjust them to match your MySQL setup.
-
-
Change directory
cd server -
Run the migrations
uv run python manage.py migrate
-
Create a superuser for accessing the admin panel
uv run python manage.py createsuperuser
-
Run the server
uv run python manage.py runserver
The deployment process is completely automated through GitHub Actions. The deploy workflow triggers automatically on every push to the master branch, and can also be triggered manually from the "Actions" tab on GitHub.
Server configuration details are available here.