Git Product home page Git Product logo

karaplan's Introduction

Docker Pulls License

KaraPlan

KaraPlan is a Karaoke Planner web application with song search, ratings, comments, playlists and more.

Developing

To develop this project you need Java 8 and NodeJS. Maven is included in the project with mvnw.

You may use your preferred IDE to develop this project, e.g. VS Code. Please respect the existing coding style.

Backend

Local backend development uses an embedded H2 database and Tomcat server listening on port 8080.

Several identity providers are supported for authentication using OAuth 2.0, and need to be configured:

Your OAuth client credentials must be supplied in a application-local.yml file in the src/main/resources directory. See this Spring Security sample for more information about configuring the OAuth 2.0 provider details.

You may launch the backend as a Spring Boot app with the following arguments:

-Dspring.profiles.active=local

An appropriate launch configuration is already included for VS Code.

The backend will then be available at http://localhost:8080

Frontend

Local frontend development uses a NodeJS server listening on port 4200 with live reload support.

First install dependencies with NPM, from the src/main/nodejs directory:

npm install

You may launch the frontend as a NodeJS server with the following command, from the src/main/nodejs directory:

ng serve

An appropriate launch configuration is already included for VS Code.

The frontend will then be available at http://localhost:4200

Building

To build the application and Docker image locally, execute the following command, from the project directory:

./mvnw -DskipTests -Dfrontend-build -Ddocker-build -Ddocker.image.tag=latest clean package dockerfile:build

A Docker image tagged fcrespel/karaplan:latest will then be created.

Running

To run the application as a Docker container, execute the following command:

docker run -d --name karaplan -p 8080:8080 fcrespel/karaplan:latest

The application will then be available at http://localhost:8080

All configuration values may be overridden with environment variables (as supported by Spring Boot), such as the following:

  • SPRING_DATASOURCE_USERNAME
  • SPRING_DATASOURCE_PASSWORD
  • SPRING_DATASOURCE_URL
  • SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GOOGLE_CLIENTID
  • SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GOOGLE_CLIENTSECRET
  • SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GITHUB_CLIENTID
  • SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GITHUB_CLIENTSECRET
  • SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_FACEBOOK_CLIENTID
  • SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_FACEBOOK_CLIENTSECRET

Legal notice

KaraPlan is licensed under the open-source MIT License.

KaraPlan is provided "as is" with no warranty of any kind, express or implied. Please refer to the license terms for more information.

KaraPlan makes use of the Recisio song catalog, the KaraFun, KaraFun Bar and Karaoke Version APIs on a fair use basis. It is not affiliated in any way with Recisio or its subsidiaries. All trademarks are the property of their respective owner.

karaplan's People

Contributors

fcrespel avatar ggdae avatar sdenef avatar

Watchers

James Cloos 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.