Git Product home page Git Product logo

vertx-musicstore's Introduction

The Music Store

A demo Music Store with Eclipse Vert.x and RxJava

Welcome
Welcome Page
Album
Album page

Runnning

If you only want to try the application without modifying it, run the build and start the components with docker-compose.

mvn clean package
docker-compose up

When all components are up browse to http://localhost:8080.

Otherwise start each component individually.

The Postgres database

docker run --rm --name musicstore-db -e POSTGRES_USER=music -e POSTGRES_PASSWORD=music -e POSTGRES_DB=musicdb -p 5432:5432 postgres

The MongoDB server

docker run --rm --name musicstore-mongo -p 27017:27017 mongo

Development

  • Do one time build to pull the dependencies mvn clean install

  • To run the application in foreground do mvn vertx:run with redeploy enabled

  • To run the applicaiton in background mode i.e. vertx start do mvn vertx:start

Check vertx-maven-plugin for more information and examples on the plugin.

Useful stuff

Initial dataset

The initial dataset has been created with the initdb.groovy script located at the project root. It parses a Rhythmbox database file and inserts the data into Postgres.

Then it’s easy to create a script for Flyway.

docker exec musicstore-db pg_dump -a --inserts --exclude-table=schema_version -h 127.0.0.1 -U music musicdb > src/main/resources/db/migration/V2__InsertData.sql

vertx-musicstore's People

Contributors

kameshsampath avatar tsegismont 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.