Skip to content

CS196Illinois/CS128H-Frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fall-2024-website

Official CS128 Honors Website: honors.cs128.org/

Updated website written in Angular

Getting Started

Install Angular CLI using npm package manager:

npm install -g @angular/cli

Download dependencies:

npm install

Run the development server:

cd frontend
ng serve

Updating the Lectures:

  1. Navigate to official-website/frontend/src/assets/ directory
  2. Edit the lectures.json file
  3. Deploy

Deployment

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

Old Deployment:

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 Serveron the Ubuntu 16.0.4 server. Do the following steps:

  1. Run git pull for the latest changes made locally or just edit the files here on the server.
  2. 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:

  1. Run git pull for the latest changes
  2. Run ng build --prod in the frontend directory. This will produce a production build of the website in the ./dist directory.
  3. Copy all the files within ./dist/website2020 and paste them into /var/www/html. Delete everything in /var/www/html except the .htaccess file
  4. Restart the apache server: sudo service apache2 restart

Notes:

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