git clone [email protected]:datasektionen/audio.git
cd audio
Install some dependencies
pipenv install && pipenv shell
npm install
Start development server
npm start
In case you're getting webpack errors, you can attempt to solve it by
running npm dedupe
to fix multiple versions of webpack being
installed. We tried removing webpack, but then it also complained.
If running locally, you can change the bool "loadSongsStatically" to true and uncomment the line below, to load songs statically, which will allow you to preview changes without having to mess with the backend. In order to make changes to songs locally one can edit songs.json and run "songFormatter.py", which will separate all songs into separate json files, which the page can load statically. In case your changes are not visible, delete the ".cache" directory from the "node_modules" directory and run npm start
again.