It is now possible to store presets on the server (in json files) #9 #44.
Some commands for saving and loading the presets are enable for admin user.
A query parameter (admin=password) has to be added to the url to have access to it. The password is defined in an environment variable ADMIN_PASSWORD (by default it is set to admin).
The sequencer state is stored in an object in the client. This allows to remove some DOM access for selecting the activated pads.
The secret session key is now hidden and can be defined with an environment variable SESSION_SECRET. A default value is assigned for development.
Tthe Freesound token is now hidden and can be defined with an environment variable FREESOUND_TOKEN. However I let a token in the code as a default value for development. For production, we will use another token that has unlimited Freesound access.
It is now possible to store presets on the server (in json files) #9 #44. Some commands for saving and loading the presets are enable for admin user. A query parameter (admin=password) has to be added to the url to have access to it. The password is defined in an environment variable
ADMIN_PASSWORD
(by default it is set to admin).The sequencer state is stored in an object in the client. This allows to remove some DOM access for selecting the activated pads.
The secret session key is now hidden and can be defined with an environment variable
SESSION_SECRET
. A default value is assigned for development.Tthe Freesound token is now hidden and can be defined with an environment variable
FREESOUND_TOKEN
. However I let a token in the code as a default value for development. For production, we will use another token that has unlimited Freesound access.