Website - Server List -
The backend server for üWave, the collaborative listening platform.
Dependencies - Development - API - License
üWave consists of two parts: the server (this repository) and the web client. The server on its own only provides an HTTP API, so you must also run the web client to actually use it.
üWave requires MongoDB and Redis databases.
The server can be run in development mode by:
git clone https://github.com/u-wave/core u-wave-core
cd u-wave-core
npm install
npm start
The development server reads configuration from a .env
file in the root
of the repository.
# Database connection URLs.
REDIS_URL=redis://localhost:6379/
MONGODB_URL=mongodb://localhost:27017/uwave_dev
# Enables the YouTube media source if given.
YOUTUBE_API_KEY=your key
# Enables the SoundCloud media source if given.
SOUNDCLOUD_API_KEY=your key
You only need to use the API if you are integrating the üWave library with your own app.
API documentation is very incomplete and might change a lot before 1.0.0. Take care!
See the example/ directory for a usage example.
Create and start a üWave server.
Parameters
Add a media source plugin. Source plugins can be used to search and import media from remote sources like YouTube or SoundCloud. Existing source plugins can be found on npm with the u-wave-source keyword.
Parameters
sourcePlugin
- Source plugin or plugin factory. Receives two parameters: Theuw
üWave Core instance, and the plugin options.options
- Options to pass to the source plugin.
Stops the üWave server.