Computer Science Club of the University of Waterloo's website. https://csclub.uwaterloo.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Amy e7ca161e76 Fix Andrew Wang Photos (#471) 6 days ago
.vscode Fix Andrew Wang Photos (#471) 6 days ago
components Redesign and update 'Meet the Team' data (#452) 3 weeks ago
content Fix Andrew Wang Photos (#471) 6 days ago
docs Add some docs about architecture (#459) 2 weeks ago
hooks Meet the Team page (#94) 11 months ago
images Fix Andrew Wang Photos (#471) 6 days ago
lib Do not use index: as metadata for OrganizedContent (#468) 2 weeks ago
pages Redesign and update 'Meet the Team' data (#452) 3 weeks ago
public Image Optimization Script (#348) 8 months ago
scripts Image Optimization - Create new ImagePool for each batch (#470) 7 days ago
.drone.yml Generate members list (#354) 7 months ago
.eslintignore Add mdx support and playground 1 year ago
.eslintrc.js Use eslint-plugin-import to bring some order to the mess (#132) 11 months ago
.gitignore Image Optimization Script (#348) 8 months ago
README.md Add some docs about architecture (#459) 2 weeks ago
deploy-demo.bash Script to deploy site to your CSC website (#99) 11 months ago
deploy.sh Generate members list (#354) 7 months ago
next-env.d.ts Upgrade Next, React, TypeScript (#91) 11 months ago
next.config.js Update content for advice pages (#299) 10 months ago
package-lock.json Implement dark theme (Closes #287) (#407) 4 weeks ago
package.json Implement dark theme (Closes #287) (#407) 4 weeks ago
postcss.config.json Convert rems to px and use calc to convert on build time 1 year ago
renovate.json Force node 16+ and npm 7+ in renovate (#192) 10 months ago
tsconfig.json Dynamically generate event calendar (#332) 9 months ago
types.d.ts Add Multiple News Items on Homepage and Single News Item Page (Closes #281) (#390) 4 months ago
utils.ts Warning Header (Closes #205) (#394) 4 months ago

README.md

README

Documentation

Development

Dependencies

Make sure that you have node >= 14 and npm >= 7. Node 14 ships with npm v6, so if you're using node 14, you would need to upgrade npm. Alternatively you could also upgrade to node 16, which ships with npm 7.

How to upgrade npm: npm i -g npm

Local

  • npm install to install project dependencies
  • npm run build:images to optimize images for the first time after cloning
  • npm run dev to run the dev server (http://localhost:3000)

Production

  • npm install to install project dependencies
  • npm run build to generate html/css/js
  • npm run export to move the built files (along with assets in the public directory) to the /out directory
  • Use your favourite web server to host the files in the /out directory. (A very simple one would be python -m http.server - not sure if it should actually be used for production :P)

Deploy

  • groups (make sure you're in the www group)
  • curl -o- https://git.csclub.uwaterloo.ca/www/www-new/raw/branch/main/deploy.sh | bash (run on caffeine)