cuites.stream




Site for the Cuites project
Backend
Install
$ git clone
Setup
For the backend to run, you'll need a SoundCloud client ID. You can find this
ID by opening the network tab on SoundCloud (while connected) and check for the
client_id
parameter in any Ajax request. Once you have that, you'll need the
set of user ID associated. Create a conf.yml
file next to the binary (or the
main.go
if you're using go run
) containing the following information:
client_id: yourclientID
user_ids: [17771323, 93734268, 20836701, 153939520, 39713634]
server:
host: 127.0.0.1
port: 8081
cors:
origins:
- http://127.0.0.1:8080
- http://localhost:8080
The server
section defines how the server should start (port, host) and the
associated CORS configuration. In the example above, we're explicitly allowing
our localhost:8080
to connect, but we can also set cors.all: true
to allow
any origin to connect.
Usage
Backend app that will aggregate playlists
Usage:
cuites.stream <options> [flags]
Flags:
-i, --client_id string Define the SoundCloud Client ID
--conf string configuration file to use
--debug Enable or disable debug mode
-h, --help help for cuites.stream
--log.format string one of text or json (default "text")
--log.level string one of debug, info, warn, error or fatal (default "info")
--log.line enable filename and line in logs
--server.cors.all defines that all origins are allowed
--server.cors.disabled disable CORS completely
--server.cors.expose strings array of exposed headers
--server.cors.headers strings array of allowed headers (default [Origin,Authorization,Content-Type])
--server.cors.methods strings array of allowed method when cors is enabled (default [GET,PUT,POST,DELETE,OPTION,PATCH])
--server.cors.origins strings array of allowed origins (overwritten if all is active)
--server.host string host on which the server should listen (default "127.0.0.1")
--server.mode string server mode can be either 'debug', 'test' or 'release' (default "release")
--server.port int port on which the server should listen (default 8080)
--user_ids strings SoundCloud users to search the playlists from