Official CS128 Honors Website: honors.cs128.org/
Updated website written in Angular
Install Angular CLI using npm package manager:
npm install -g @angular/cliDownload dependencies:
npm installRun the development server:
cd frontend
ng serve- Navigate to
official-website/frontend/src/assets/directory - Edit the
lectures.jsonfile - 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/website2020To 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 Serveron the Ubuntu 16.0.4 server. Do the following steps:
- Run
git pullfor 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 pullfor the latest changes - Run
ng build --prodin the frontend directory. This will produce a production build of the website in the./distdirectory. - Copy all the files within
./dist/website2020and paste them into/var/www/html. Delete everything in/var/www/htmlexcept the.htaccessfile - 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