The old site was nice but difficult to update, this site just uses a google sheet which cmt can edit. This allows for all cmt members to make changes which can be monitored through google sheets history.
Aside from the dynamic changes this site was written in some rushed ReactJS. Changes to the site don't really need to be made apart from styling updates or changing the year for the current cmt and the majority of changes should just be made to the google sheet.
The google sheet controlling the information can be found here.
- Google Sheets / JSON Fetch
- Dynamic Image Gallery
- Event List
- Upcoming Events
- Past Events
- Talk Slides
- Displaying general information about the society
- Mobile friendlyish
- git clone the repo.
- run
yarn
. - ensure the
homepage
inpackage.json
is set correctly. - ensure
siteMetadata.dataURL
ingatsby-config.js
is set to pull information from the correct JSON file. - run
yarn build
. - ensure there are no errors in the output.
- copy & paste the static files in the build folder that has been created. This is your site now :)
-
Ensure the JSON file
siteMetadata.dataURL
is set to pull from is being regularly updated (~ once day) -
As of 19/11/2019, the release of this site, the
data.json
file can be pulled fromfraz.redbrick.dcu.ie/data.json
- This file is updated by a cron job running at 00:00 everyday. :)
So you want to make changes? okay.
- Node
npm
/yarn
- Slight insanity
- general understanding of ReactJS
- git clone the repo
- run
yarn
in the root directory - start a hotreload server with
npm dev
- make changes and watch the magical hot reload take action live!
Note: the main code is located in src