Table of Contents
To run Chillzone front-end on your local system.
-
Make sure you have
pnpminstalled on your system. Installation instructions can be found here. -
Clone the repo and change directory.
git clone https://github.com/metakgp/chillzone cd chillzone/frontend -
Install modules and launch frontend.
pnpm install pnpm run dev
- Updating
.envfile
Note: Use
.env.templatefile as the base for.envfile.
Update the SESSION and SEMESTER environment variables.
Note: In case you are unable to scrape the new semester's timetable, then, these steps will help you find the problem:
- Turn on
DEBUGinside the.envfile by setting it to"1".- Reduce the size of the departments array to 2 so that you are not buried with output in the terminal.
- Run
update_data.sh.
-
problems.jsonJSON file that stores problems reported by users. Sometimes, the ERP might show that course A is scheduled to be held in room B, but later, due to (say) too many students, the course might be moved to a bigger room C. Then, a few nodes can be added to the JSON file without touching other files and the schedule can be regenerated.
-
schedule.jsonThis is JSON file whose keys are the names of the rooms. Each value is a matrix with 5 rows and 9 columns. Each element in the matrix is the subject code of the class that will be held in that room during that one-hour slot. This string can be empty to show that the room will remain empty.
-
empty_schedule.jsonThis is a JSON file that stores a matrix with 5 rows and 9 columns. Each element of the matrix is a list of strings containing the list of rooms that are free during that one hour slot.
-
subjectDetails.jsonThis JSON file is used to show the tooltip with the name of the course and the name of the professors on top of the timetable entry in the chillzone webpage. It is a JSON file where the keys are subject codes and the values are strings with this structure:
<SUBJECT NAME> - <PROFESSOR NAMES>.
This package utilizes iitkgp-erp-login-go package to handle ERP login functionality and fetch timetables.