vyvytn / avt

1 stars 1 forks source link

avt-dj

DJ Tool, Gruppenarbeit im Rahmen von Audio- und Videotechnik an der HTW Berlin

Table of Contents - [Install](#install) - [Deployment](#deployment) * [Frontend](#frontend) * [Backend](#backend) - [Backend API](#backend-api) * [GET `/search/query`](#get-searchquery) * [GET `/download/:id`](#get-downloadid) - [Dependencies](#dependencies) * [Frontend](#frontend-1) * [Backend](#backend-1) - [Supported Browser](#supported-browser)

Install

npm install

npm run dev

Deployment

Frontend

Compile html:

npm run prod

Backend

Fill in config.json with freesound client_id, client_secret and auth_code.

npm run server

Backend API

Available at: https://dj-api.jneidel.com

GET /search/query

Get a list of results for the query, with complete (for our purposes) meta data.

curl https://dj.jneidel.com/search/wave

# -> [
#  {"id":183881,"title":"Elementary Wave 11","artist":"Erokia","imgUrl":"https://freesound.org/data/displays/183/183881_9497060_wave_M.png","duration":51.7188}
# ... ]

GET /download/:id

Download sound data.

curl https://dj.jneidel.com/download/183881 >wave.wav

# downloads the wave sound

Dependencies

Frontend

Backend

Supported Browser