Skip to content
forked from fcrespel/karaplan

Karaoke Planner web application with song search, ratings, comments, playlists and more

License

Notifications You must be signed in to change notification settings

sdenef/karaplan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Karaoke Planner web application with song search, ratings, comments, playlists and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 54.4%
  • TypeScript 25.8%
  • HTML 17.5%
  • CSS 1.4%
  • Other 0.9%