Random Afkorting voor Digitale Informatie Overdracht. This is a plain React project that is used to display information on the TV screen in the Sticky room. This information is read in from Koala and Contentful.
Radio is a plain React project. To learn how to use react, all the documentation for that is on https://facebook.github.io/react/
-
Install packages by running
npm install
; -
Rename sample.env to .env; (fill in the contentful secrets by requesting them from ITcrowd)
-
Fill in the Contentful space_id and token;
-
Run the development server:
npm run start
.
Dev server runs on http://localhost:3000. Also check http://localhost:3000/?internal=true to see the quotes and board ads.
Put the transpiled js, html and css files in the dist/ folder:
npm run build
Simply copy over the dist/ folder to the server to deploy.
On Linux this should be done by using:
scp -r dist/* svsticky.nl:/var/www/commit/radio.svsticky.nl
When on Windows you need to use an SFTP client to connect to:
sftp://commit@svsticky.nl
That's it. Happy hacking.
- removed isomorpic fetch (for the built in fetch in modern javascript)
- removed all web pack configurations for vite as build tool. The webpack configuration did not support the latest Node.js version anymore.
- added a page named "Teams", where all members of the github
svsticky
are displayed.