No description
Find a file
Marks Polakovs c1dd57eabf THIS IS BAD
2020-04-12 22:13:33 +02:00
config Enable Service Workers and cache NIPSWeb/(secure|managed)_play 2020-04-03 12:02:48 +02:00
public Sort out some manifest fubars 2020-04-03 12:09:13 +02:00
scripts Eject 2020-03-29 12:04:49 +02:00
src Don't call changeTimeslot() from reducer. 2020-04-12 15:29:05 +01:00
.env Add basis of webstudio selector server UI. 2020-04-11 22:39:27 +01:00
.env.production Rename prod .env file because it wuz wrong 2020-04-12 10:33:49 +02:00
.gitignore server: add raygun 2020-04-10 13:03:08 +02:00
Jenkinsfile refactor recording and stuff 2020-04-10 15:13:27 +02:00
mypy.ini Add serverside type checking 2020-04-07 12:19:28 +02:00
package.json prod release 2020-04-12 16:50:26 +02:00
README.md update README 2020-04-11 12:27:44 +02:00
requirements.ci.txt add aiohttp to CI requirements to fix build 2020-04-11 23:49:39 +02:00
requirements.txt shittyserver: implement things needed for mattserver 2020-04-11 15:53:50 +02:00
server.py THIS IS BAD 2020-04-12 22:13:33 +02:00
shittyserver.ini.example flesh out example ini 2020-04-12 16:52:47 +02:00
tsconfig.json Initial commit from Create React App 2019-11-12 12:21:05 +00:00
yarn.lock Add basis of webstudio selector server UI. 2020-04-11 22:39:27 +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 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)