Skip to content

McGillEUS/baja

Repository files navigation

Baja Site

Project Setup

Make sure npm and node.js are up-to-date, then install packages

npm install

Compile and Hot-Reload for Development

npm run dev

The site can be viewed at localhost:3000

Compile and Minify for Production

npm run build

Project Structure

This is a vue 3 project using SCSS and Bootstrap V5 with variable overrides in assets/styles/_custom.scss.

Automation

The scripts in the automation folder should make it simple to update the content for the people and cars on the team page.

To update the people:

  1. After people fill out the Google Form, save the associated Google Sheet as members.csv in the automation folder (the name can be changed in members.py but the extension .xls must stay the same). Note that everyone will appear in the site in the same order as in the file. If the column order has changed, update the order in members.py.
  2. Run the python script using python members.py > members.json. This will create/update the people.json file in the automation folder. The UI will import that file and generate the associated code.
  3. Add each person's image to the folder public/images/members with the format Firstname.jpg. The UI will automatically import them.

Any changes made directly to the members.json will be displayed immediately, but if the members.csv file is modified and the python script is re-run, then those changes may be overwritten.

To update the cars, add the car info to the cars.json file in the automation folder and add the corresponding image to the folder public/images/cars with the format year.jpg (ex: MB22.jpg). In the json file, add an object for the car like this: { "year": "MB18", "name": "Tilly" }. If it doesn't have a name, just use an empty string (so instead of "Tilly", it would be "").

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •