Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.94 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.94 KB

course-web

Template for the workshop website

Course Web Site

Repository structure

The repository consists of very few important directories:

  • bin - contains the nodejs executable aptly named www
  • public - the materials subdirectory is where we stored the courses PDFs - try to keep this small, i.e. no data!
  • routes - this contains the js files; i.e. the logic behind the webpage behavior
  • views - this contains the files that will generate the html; these are written in pug.

The other directories/files are managed by nodejs

Relevant links

Changes needed for a course

To edit the website for a course, you need to:

  1. Edit the title of the course in the index, connect and materials pug view files (Look for the first h1)
  2. Edit the short version of the title in the index, connect and materials js routes files (Look for :title:")
  3. Edit the participant list in the connect.js file (At the moment this is a bit convoluted as we used 2 servers and had to divide the participants across, but ideally it should be a simple user-ID list. The ID is later used to assign the Port number to connect to the user-specific Docker containers.

Keeping up to date

Check the node JS module repository and update the package.json file accordingly.

TODOs

  • provide a user file instead of modifying the connect.js

  • handle different IPs more gracefully than in the connect.js

  • provide the course title in a single place to avoid editing all js files and the index, connect and materials pug view files

  • Find a way to import materials to public/materials instead of git-ing everything