Skip to content

svsticky/radio

Repository files navigation

radio

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.

Technology used

Radio is a plain React project. To learn how to use react, all the documentation for that is on https://facebook.github.io/react/

Build and dev instructions

  1. Install packages by running npm install;

  2. Rename sample.env to .env; (fill in the contentful secrets by requesting them from ITcrowd)

  3. Fill in the Contentful space_id and token;

  4. 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.

Release instructions

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.

New in version 2 (#Changelog)

  • 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.