No description
Find a file
2020-05-11 16:02:27 +02:00
.github/workflows Check prettier instead of trying to be smart 2020-04-19 18:57:58 +02:00
config Don't take over all of ury.org.uk, that would be silly 2020-05-09 17:43:45 +02:00
public Use bundled Font Awesome instead of CDN 2020-04-17 17:37:01 +02:00
scripts
src Reduce number of tiny waveform bits to render. 2020-05-11 13:46:19 +02:00
.editorconfig Styling tweaking (#77) 2020-04-19 23:17:05 +02:00
.env
.env.production
.gitignore Import stateserver into tree, MyPy-ify, CI-ify 2020-04-13 18:40:03 +02:00
Jenkinsfile Add Git hash to builds 2020-04-24 12:24:08 +02:00
mypy.ini
package.json Release 1.2.1 2020-05-11 16:02:27 +02:00
README.md
requirements.ci.txt Revert UTC changes. 2020-04-16 16:37:59 +02:00
requirements.txt Get TURN config from shittyserver instead of hard-coding 2020-04-24 12:09:52 +02:00
serverconfig.ini.example Get TURN config from shittyserver instead of hard-coding 2020-04-24 12:09:52 +02:00
shittyserver.py disable hardcoded TURN 2020-05-09 16:00:56 +02:00
stateserver.py Make sure we update the wsID, even on an existing registrationt 2020-05-11 02:20:06 +02:00
tsconfig.json prettier all the things 2020-04-20 14:54:43 +02:00
yarn.lock Add an animation to the register/cancel button 2020-04-24 17:30:36 +02:00

WebStudio

WebStudio is URY's big fun machine for doing radio shows from home, using Web Audio and WebRTC.

The clientside is written in TypeScript using React and Redux, the serverside is Python using AsyncIO and JACK.

Development

Requirements

Client:

  • Node.js and Yarn (Yarn 1, 2 isn't supported very well by webpack/typescript/anything really)

Server:

  • Python >=3.7

Installing

Clone the repo and run yarn.

You'll probably want to change the values in .env to reflect the MyRadio environment and/or where the server is running (e.g. if you're running the server locally, change REACT_APP_WS_URL to ws://localhost:8079/stream).

If you want to hack on the server, create a virtualenv and install Python packages:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Hacking

Start the client by running yarn start.

Start the server by running python3 server.py.

Don't forget to ensure that both TypeScript and MyPy pass, as your code will be rejected by CI otherwise - run tsc --noEmit and/or mypy server.py to check.

Releasing a new version

Every push to master is deployed automatically by Jenkins to https://ury.org.uk/webstudio-dev.

Deploying to https://ury.org.uk/webstudio is also automated but slightly more involved:

  1. Change the version field in package.json to ensure the "about" page is up to date
  2. Push up your version bump and create a pull request to the production branch - https://github.com/UniversityRadioYork/WebStudio/compare/production...master
  3. Once your changes are merged into production they'll get deployed automatically (although you will need to restart the server - ssh to Dolby and run sudo systemctl restart webstudioserver)