Official CS128 Honors Website: honors.cs128.org/
Updated website written in Angular
Install Angular CLI using npm
package manager:
npm install -g @angular/cli
Download dependencies:
npm install
Run the development server:
cd frontend
ng serve
- Navigate to
official-website/frontend/src/assets/
directory - Edit the
lectures.json
file - Deploy
We now deploy the site on GitHub Pages, use the following command:
cd frontend
ng deploy --cname=honors.cs128.org --repo=https://github.com/cs196illinois/CS128H-Frontend.git --dir=dist/website2020
To deploy on the server, get access to the cs196.cs.illinois.edu
Ubuntu server. SSH into <NetID>@cs196.cs.illinois.edu
(Note that you need to be connected to IllinoisNet or VPN).
The website is deployed using Apache2 HTTP Server
on the Ubuntu 16.0.4 server. Do the following steps:
- Run
git pull
for the latest changes made locally or just edit the files here on the server. - Run
sudo ./deploy
. Check website to make sure changes are live (may take a few seconds)
Website SSL Certificate is managed by LetsEncrypt.
If the deployment script does not work, do the following:
- Run
git pull
for the latest changes - Run
ng build --prod
in the frontend directory. This will produce a production build of the website in the./dist
directory. - Copy all the files within
./dist/website2020
and paste them into/var/www/html
. Delete everything in/var/www/html
except the.htaccess
file - Restart the apache server:
sudo service apache2 restart
If non home urls aren't working (e.g. cs196.cs.illinois.edu/staff or cs196.cs.illinois.edu/resources): solution
Install Ranger for fast terminal navigation: pip install ranger-fm
. This may be helpful copying and pasting multiple files