Skip to content

tsegismont/vertx-kotlin-music

Repository files navigation

Vert.x Kotlin Music

A server-side Vert.x Kotlin demo application.

It serves as a backend for the Universal Android Music Player Sample and shows how to:

  • create a web server

  • interact with a relational database

  • stream files from the disk

Running

The Postgres database

With Docker:

cd postgres
./run-postgres.sh

The server-side app

Download or fork this repository, open it in a terminal and then run:

./gradlew web:vertxRun

The server starts listening on port 8080.

The mobile app

Clone this fork of the Universal Android Music Player Sample and checkout the vertx-kotlin-music branch:

git clone /~https://github.com/tsegismont/android-UniversalMusicPlayer.git
cd android-UniversalMusicPlayer
git checkout vertx-kotlin-music

This branch modifies the code so that:

Important
Do not forget to put the shared classes in your local Maven repo before importing the project in Android Studio.

To do so, open a Terminal in the backend project directory and run:

./publish-to-mvn-local.sh

Then open Android Studio and import the project.

Finally, create or reuse a virtual device to deploy the mobile app.

Audio files

Audio files in this repository come the YoutTube Free Music Library. They have been chosen because they do not require paternity attribution.

About

A server-side Vert.x Kotlin demo application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published