Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

ed-asriyan/bmstu-schedule-ical

Repository files navigation

BMSTU Schedule iCalendar Generator Build Status dependencies Status

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

Running the app

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:

Using docker

  1. Build the docker image:
docker build -t bmstu-ical .
  1. 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.

Using npm & node.js

  1. It requires Node.js with npm. Install them.

  2. Install dependencies:

npm install
  1. Run the server (replace <PORT> with port you want to listen):
PORT=<PORT> npm start

And open http://localhost:<PORT> in the browser.

Using a server

  1. It requires Node.js with npm. Install them.

  2. Install dependencies:

npm install
  1. 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:

  1. Install nginx.

  2. Copy generated files:

cp -R public/static/. /usr/html/
  1. Copy nginx config:
cp nginx.conf /etc/nginx/nginx.conf
  1. Restart nginx:
sudo service nginx restart

Open http://localhost in the browser.