Code Monkey home page Code Monkey logo

justmusic-javalin's Introduction

JustMusic

This project is a simple prototype of an app build with Javalin. It is a REST service which serves collections of MP3 files. It can parse ID3 tags and group songs to albums and artists.

Data is stored in maps, here in Hazelcast IMap. So it can run with multiple instances. It can serve cover and the MP3 for players.

Frontend is a Single Page Application build with Angular 6 and Angular Material. Audio is done with Howler.js.

Build

Frontend need to be built first. This will be done with the parent pom.xml.

Frontend

To build the frontend, Node / NPM is required. After that the Angular-CLI needs to be installed.

npm i -g @angular/cli

Then go to the src/main/frondend folder and execute

npm i
ng build --prod

This will build the frontend to the dist folder.

REST-Service

It needs Maven 3+ to build this app. Run mvn package to build the project. The build artifacts will be stored in the target/ directory. If you build from the root, front and backend are build and packaged together.

Run

It can be staret with

java -jar target/justmusic-javalin-1.0-SNAPSHOT-jar-with-dependencies.jar

and called from browser with url http://localhost:7000. JustMusic looks in $HOME/.jmj for its configuration. A file called users.json is expected there.

Example users.json:

[ {
  "username" : "admin",
  "password" : "admin",
  "roles": "user,admin"
}, {
  "username" : "user",
  "password" : "user",
  "roles": "user"
} ]

justmusic-javalin's People

Contributors

bernmic avatar

Watchers

Thomas Eilermann avatar  avatar

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.