No description
Find a file
2021-08-09 22:06:19 +01: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
images Added images to readme file 2020-07-11 01:51:14 +02:00
public
scripts Add semi-automated script for tracing memory leak 2020-05-26 14:54:13 +02:00
src Fix unknown timelord when off air 2021-08-09 22:06:19 +01:00
.editorconfig Styling tweaking (#77) 2020-04-19 23:17:05 +02:00
.env Hotfix for Sentry 2021-05-12 20:35:29 +01:00
.env.development Fix local development 2021-05-12 20:33:16 +01:00
.env.production Change shittyserver's WS to go via thunderhorn 2020-06-14 19:12:56 +02:00
.gitignore Show a big scary warning when using non-production versions 2020-09-19 14:08:43 +01:00
Jenkinsfile whoops 2021-05-13 12:12:16 +01:00
mypy.ini
package.json Bump version 2021-05-12 20:35:54 +01:00
README.md Changed level of screenshot 2020-07-11 01:51:14 +02:00
requirements.ci.txt Bump jinja2 from 2.11.2 to 2.11.3 2021-03-20 03:29:43 +00:00
requirements.txt Merge pull request #223 from UniversityRadioYork/dependabot/pip/jinja2-2.11.3 2021-04-30 22:08:06 +01:00
serverconfig.ini.example Replace Raygun with Sentry 2021-04-25 09:48:37 +01:00
shittyserver.py Hotfix for bro-ken prod deploys 2021-04-28 09:06:12 +01:00
stateserver.py Avoid killing a non-WebStudio show if the connection drops (#135) 2020-06-16 12:05:47 +02:00
tsconfig.json prettier all the things 2020-04-20 14:54:43 +02:00
yarn.lock Replace Raygun with Sentry 2021-04-25 09:48:37 +01: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 stateserver.py and python3 shittyserver.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)

Screenshots

Mic Live With Main Screen

Home Page of webstudio

Mic Selection Screen