Code Monkey home page Code Monkey logo

dsvl's Introduction

Total alerts Language grade: JavaScript Language grade: Java

To build and run the application

Instructions to build with an IDE is described here.

  1. Ensure you have Java 8 installed
  2. Open terminal or command line and navigate to the flood directory
  3. Run ./gradlew bootJar (it is not necessary to have Gradle installed in your system)
  4. You will get an output similar to below
    Starting a Gradle Daemon (subsequent builds will be faster)
    
    BUILD SUCCESSFUL in 6s
    3 actionable tasks: 3 up-to-date
    
  5. Run java -jar build/libs/flood-0.0.1-SNAPSHOT.jar --node.port=44444 --server.port=8080
  6. If the node starts correctly you will see log messages like below
    2018-10-19 16:29:11.787  INFO 15771 --- [           main] com.dsvl.flood.FloodApplication          : Started FloodApplication in 3.403 seconds (JVM running for 3.948)
    2018-10-19 16:29:11.789  INFO 15771 --- [           main] com.dsvl.flood.Registrant                : Attempting to register with the bootstrap server
    2018-10-19 16:29:11.794  INFO 15771 --- [           main] com.dsvl.flood.UdpHelper                 : Sent UDP message to 127.0.0.1:55555 0029 REG 127.0.0.1 44445 dsvl
    2018-10-19 16:29:11.796  INFO 15771 --- [           main] com.dsvl.flood.UdpHelper                 : Received UDP message from 127.0.0.1:55555 0044 REGOK 2 127.0.0.1 45555 127.0.0.1 44444
    2018-10-19 16:29:11.796  INFO 15771 --- [           main] c.d.f.service.impl.RegisterServiceImpl   : Successfully registered with the bootstrap server
    
  7. If you want to start multiple node instance, run the same command with different node.port and server.port values

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.