The app generates iCalendar file with the schedule for a certain group in BMSTU.
The working site is here: https://ed-asriyan.github.io/bmstu-schedule-ical
At first clone the repository:
git clone https://github.com/ed-asriyan/bmstu-schedule-ical
cd bmstu-schedule-ical
Now you can build and run the app, there are several ways to do it:
- Build the docker image:
docker build -t bmstu-ical .
- Run a container (replace
<PORT>
with port you want to listen):
docker run -p <PORT>:80 bmstu-ical
Open http://localhost:<PORT>
in the browser.
-
It requires Node.js with npm. Install them.
-
Install dependencies:
npm install
- Run the server (replace
<PORT>
with port you want to listen):
PORT=<PORT> npm start
And open http://localhost:<PORT>
in the browser.
-
It requires Node.js with npm. Install them.
-
Install dependencies:
npm install
- Generate bundle:
npm run generate_bundle
Generated files are located in public/static
directory. For it to work properly, you should use them as static files
on your server, also you should configure /proxy
URL path on the server as proxy to
http://raspisanie.bmstu.ru:8088/
. Do it manually, or do the following to run with nginx:
-
Install nginx.
-
Copy generated files:
cp -R public/static/. /usr/html/
- Copy nginx config:
cp nginx.conf /etc/nginx/nginx.conf
- Restart nginx:
sudo service nginx restart
Open http://localhost
in the browser.