Giter Site home page Giter Site logo

comsat-examples's Introduction

COMSAT Examples

This project includes some examples that makes use of an embedded Jetty servers and several others that are packaged into WAR files and can be deployed to servlet containers.

Running the Jetty examples

In the shell:

gradle :comsat-examples-embeddedjetty:run

A Jetty web actors example can be run with:

gradle :comsat-examples-jetty-webactor:run

A Dropwizard example can be run with:

gradle :comsat-examples-dropwizard:runSimple

Non-web examples

gradle :comsat-examples-db:runSimple
gradle :comsat-examples-retrofit:runSimple

Running the WAR examples

For convenience, we've included a tiny program (embedded-tomcat) that runs a Tomcat server, creates a database, and compiles and deploys all WAR examples.

In the shell, type:

gradle :embedded-tomcat:run

Then, in a web browser, access any of the following links:

Hot Code Swapping

  1. Open an new shell and build the upgrade module:
gradle :comsat-examples-webactors-codeswap:jar
  1. Run and access http://localhost:8080/comsat-examples-webactors/webactor as explained above.

  2. Copy the upgrade module jar file into the modules/ directory:

cp comsat-examples-webactors-codeswap/build/libs/comsat-examples-webactors-codeswap.jar modules

You will now see the new actor behave differently in the test web page.

Running Spaceships

Uncomment the following line in embedded-tomcat/build.gradle:

from project(":comsat-examples-spaceships").war

Then, open http://localhost:8080/comsat-examples-spaceships/login in your browser.

License

These examples are released under the MIT license.

Copyright (c) 2014-2015 Parallel Universe

comsat-examples's People

Contributors

pron avatar

Watchers

 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.