Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build
path: ./frontend/build
path: ./frontend/dist

2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./frontend/build
folder: ./frontend/dist
34 changes: 3 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@

- [Local Installation](#local-installation)
- [Updation for a new semester](#updation-for-a-new-semester)
- [For First Year Timetable](#for-first-year-timetable)
- [For Second Year and above Timetable](#for-second-year-and-above-timetable)
- [Updating `.env` file](#updating-env-file)
- [Final steps](#final-steps)
- [Meanings of the various files](#meanings-of-the-various-files)
- [Input Files](#input-files)
- [Output Files](#output-files)
Expand All @@ -63,7 +59,7 @@ To run Chillzone front-end on your local system.
3. Install modules and launch frontend.
```
pnpm install
pnpm start
pnpm run dev
```

<p align="right">(<a href="#top">Back to top</a>)</p>
Expand All @@ -83,22 +79,7 @@ curl 'https://erp.iitkgp.ernet.in/Acad/timetable_track.jsp?action=second&dept=AE

## Updation for a new semester

### For First Year Timetable

> **Note**: First year timetable needs to be updated at the start of a new session only.

1. Download first year timetable from ERP and place it in the `first-year-scraper/` directory.
2. Install dependencies.

```
cd first-year-scraper

pip install -r requirements.txt
```

### For Second Year and above Timetable

#### Updating `.env` file
1. Updating `.env` file

> **Note**: Use `.env.template` file as the base for `.env` file.

Expand All @@ -109,9 +90,7 @@ Update the `SESSION` and `SEMESTER` environment variables.
> 1. Turn on `DEBUG` inside the `.env` file by setting it to `"1"`.
> 2. Reduce the size of the departments array to 2 so that you are not buried with output in the terminal.

### Final steps

1. Run `update_data.sh`.
2. Run `update_data.sh`.

<p align="right">(<a href="#top">Back to top</a>)</p>

Expand All @@ -127,13 +106,6 @@ Update the `SESSION` and `SEMESTER` environment variables.
a few nodes can be added to the JSON file without touching other files and
the schedule can be regenerated.

- `first-year.csv`

The first year timetable is not available by default on ERP, so we need to
add it manually using the central timetable PDF. This CSV file will be taken
into consideration when the schedule is constructed. Refer to the template
for details.

### Output Files

- `schedule.json`
Expand Down
10 changes: 0 additions & 10 deletions first-year-scraper/excel_parser.py

This file was deleted.

66 changes: 0 additions & 66 deletions first-year-scraper/generate_schedule.py

This file was deleted.

46 changes: 0 additions & 46 deletions first-year-scraper/generate_subjectDetails.py

This file was deleted.

10 changes: 0 additions & 10 deletions first-year-scraper/main.py

This file was deleted.

5 changes: 0 additions & 5 deletions first-year-scraper/requirements.txt

This file was deleted.

Binary file removed first-year-scraper/spring24.pdf
Binary file not shown.
Binary file removed first-year-scraper/test.pdf
Binary file not shown.
32 changes: 7 additions & 25 deletions frontend/public/index.html → frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Chillzone provides a list of unoccupied rooms in Nalanda or Vikramshila at your chosen time. No more aimless wandering around. Whether you need a quiet place to focus or a space to unwind between classes, Chillzone has you covered.
"
content="Chillzone provides a list of unoccupied rooms in Nalanda or Vikramshila at your chosen time. No more aimless wandering around. Whether you need a quiet place to focus or a space to unwind between classes, Chillzone has you covered."
/>
<meta
name="keywords"
Expand All @@ -20,16 +19,17 @@
<meta
property="og:description"
content="Chillzone provides a list of unoccupied rooms in Nalanda or Vikramshila at your chosen time. No more aimless wandering around. Whether you need a quiet place to focus or a space to unwind between classes, Chillzone has you covered."
/>
<!-- <meta property="og:image" content="imgurl" /> -->
/>
<!-- <meta property="og:image" content="imgurl" /> -->
<meta property="og:url" content="https://chill.metakgp.org/" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />

<link rel="manifest" href="/manifest.json" />
<link rel="shortcut icon" href="/favicon.ico" />
<script type="module" src="src/main.tsx"></script>

<!-- Include bootstrap CSS for react-bootstrap -->
<link
rel="stylesheet"
Expand All @@ -38,30 +38,12 @@
crossorigin="anonymous"
/>

<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Chillzone - IIT Kharagpur</title>
</head>
<body>
<noscript> You need to enable JavaScript to run this app. </noscript>
<div id="root" class="container"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
Expand Down
Loading
Loading