The API Gateway acts as a gateway to all other services and simultaniously offers a REST API for operations like uploading files, initializing SSE streams for clients and downloading files.
tbd
One of the dependencies is audiowaveform, which handles calculating a downsampled representation of an uploaded audio file. For installation refer to their installation guide or if using ubuntu do:
sudo add-apt-repository ppa:chris-needham/ppa
sudo apt-get update
sudo apt-get install audiowaveform
For further audio processing FFmpeg is used, make sure to install the dependencies outlined in the docs
yarn install
- add
.env
file and copy over the template from.env.template
- add relavant secrets to
.env
file. DON'T COMMIT THIS npx prisma db push
to create theaudio_db
table from current prisma schemanpx prisma generate
to generate the prisma clientyarn dev
Generally its good practise to use npx prisma db pull
and npx prisma generate
when you suspect the schema of the db has changed in a previous commit.
With npx prisma studio
you can easily start a small application that provides a UI for looking at your postgresql db.