GithubHelp home page GithubHelp logo

classproject's Introduction

class project

Building and Running on Unix

  1. Install Java 7 JDK. Validate it with java -version It should be 1.7. Validate the compiler as well with javac -version

  2. Install Maven

  3. build the project from the classproject directory by typing mvn install

  4. set up the database

    cd scripts/cql cqlsh -f playlist.cql

  5. To run it, cd to the target directory

run the main class:

java -cp 'playlist-1.0-SNAPSHOT.jar:lib/*' StartJetty
  1. Visit the application at http://localhost:8080/playlist

Building and running on Windows

  1. Install Java 7 JDK. This is required for running the application as well as building it

set your JAVA_HOME to the new JDK root directory. You can do this either in the System Control panel for the whole system or do it in a single terminal window.

eg. for a cmd window

set JAVA_HOME=c:\Program Files\Java\jdk1.7.0_40

Add Java into your path with the new JAVA_HOME:

set PATH=%JAVA_HOME%\bin;%PATH%
  1. set up Maven, by unpacking it into a directory, and add its bin directory to the PATH

    set PATH=%PATH%;c:\Users\Steve\apache-maven-3.1.0\bin

  2. Set up Cassandra

  3. Install the tables and sample data

You may have to figure out how to run CQLSH in your environment - we're making it easier ...

cd <project>/deployment/cql

cqlsh -f packages.cql
  1. Build the project

    mvn install

  2. Run a standalone server

Ensure you are in the project root.

Run it as follows:

cd to the target directory

java -cp 'playlist-1.0-SNAPSHOT.jar;lib\*' StartJetty
  1. Visit the application at http://localhost:8080/playlist

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.