Coder Social home page Coder Social logo

vertx-kotlin-music's Introduction

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.

vertx-kotlin-music's People

Contributors

tsegismont avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vertx-kotlin-music's Issues

Impossible de compiler avec gradle

Juste après un git clone, j'ai lancé un build sur Cloud Shell et ca ne marche pas. Une idée de ce qui manque? Une dépendance?

guillaume_blaquiere@cloudshell:~/vertx-kotlin-music😎 ./gradlew jibDockerBuild --image=gcr.io/gbl-imt-homerider-basguillaueb/vkm
Starting a Gradle Daemon (subsequent builds will be faster)

Task :web:jibDockerBuild
Containerizing application to Docker daemon as gcr.io/gbl-imt-homerider-basguillaueb/vkm...
Base image 'gcr.io/distroless/java:8' does not use a specific image digest - build may not be reproducible
Executing tasks:
[====== ] 20.0% complete
building dependencies layer
building resources layer
building project dependencies layer
building classes layer
Task :web:jibDockerBuild FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':web:jibDockerBuild'.

com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: org.apache.http.client.config.RequestConfig$Builder.setNormalizeUri(Z)Lorg/apache/http/client/config/Reque
stConfig$Builder;

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 1m 6s
    6 actionable tasks: 6 executed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.