||10 months ago|
|.github||1 year ago|
|backend||10 months ago|
|concourse||1 year ago|
|examples||11 months ago|
|frontend||10 months ago|
|scripts||10 months ago|
|.flake8||5 years ago|
|.gitignore||5 years ago|
|.gitmodules||5 years ago|
|.jshint||5 years ago|
|LICENSE||5 years ago|
|README.md||11 months ago|
|config.json.example||1 year ago|
If you want to set it up on a debian10 VM you can follow this tutorial.
There are some assumptions in the code you might have to fix before deploying for real elsewhere:
backend.pyassumes that it has write access to the
schedule.pyassumes that bumps are in the album "Lainchan Radio Transitions".
These shouldn't really matter for development. Some things might not work properly, that's it. There might be more things.
There are a few files you might reasonably want to edit if you deploy this code:
config.json, the list of channels, MPD details, and frontend asset template details.
For those that use debian 10 to host lainonlife,
Configure your webserver.
examples/directory for help.
Build the frontend assets.
$ cd frontend $ ./run.sh ../config.json
If all goes well, the directory
_sitenow contains all the frontend assets.
Put the frontend assets where you told the server they would be.
$ cp -r frontend/_site/* /srv/http
Start the backend on the port you told the server it would be.
$ cd backend $ CONFIG=../config.json HTTP_DIR=/srv/http PORT=5000 ./run.sh
Frontend development is setup with pipenv.
Initially you have to run
pipenv install in the
There are 3 essential scripts for development:
- build: builds the static site, its out put can be found in
- watch: watches the source files for changes and rebuilds
- serve: watches the source files and also run a local webserver on localhost
You can run these scripts like so:
pipenv run build