Coder Social home page Coder Social logo

msl-catalog-edge's Introduction

MSL Catalog Edge

This repository is a sub-repository of the Kenzan Million Song Library (MSL) project, a microservices-based Web application built using AngularJS, a Cassandra NoSQL database, and Netflix OSS tools.

NOTE: For an overview of the Million Song Library microservices architecture, as well as step-by-step instructions for running the MSL demonstration, see the Million Song Library Project Documentation.

Overview

You can run build all of the MSL microservices by running mvn clean compile from the server directory of the main million-song-library repository. Or use the commands below to build, run, and test a single microservice.

NOTE: If you receive an error when running any of the commands below, try using sudo (Mac and Linux) or run PowerShell as an administrator (Windows).

Server Generation

Use the following command to generate server source code from the Swagger definition, run tests, and install dependencies:

mvn -P build clean generate-sources install

Use the following command to run the server on port 9003:

mvn -P dev clean jetty:run

To verify that the server is running, first start Cassandra, and then access the following URL:

http://localhost:9003/catalog-edge/browse/album

Code Formatting

If you make changes to the application code, use the following command to format the code according to project styles and standards:

mvn clean formatter:format

Dependencies

Use the following command to install dependencies without running tests:

mvn -P no-tests clean install

JAR Packaging

Use the following command to package the application code:

mvn -P no-tests package

There are some archaius properties that need to be provided when running the jar files, see example:

java -jar msl-catalog-edge.jar
-Darchaius.deployment.environment=dev \
-Darchaius.configurationSource.additionalUrls=file://${PWD}/../msl-catalog-edge-config/edge-config.properties,file://${PWD}/../msl-catalog-data-client-config/data-client-config.properties

Testing and Reports

You can use either Cobertura or EclEmma to run tests, whichever you prefer.

Cobertura

Use the following command to run all unit tests and generate a report on test coverage (report is located in /target/site/cobertura/index.html):

mvn cobertura:cobertura

EclEmma

Use the following command to run all unit tests and generate a report on test coverage (report is located in /target/site/jacoco):

mvn package

msl-catalog-edge's People

Contributors

kenzananram88 avatar bschwanitz avatar emmurillo avatar mark-at-kenzan 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.