Giter Club home page Giter Club logo

vertx-scala-reactive-chat's Introduction

This is a quickstart for a Vert.x Scala project. It provides a few examples for doing unit-tests.

It comes with vertx-core and vertx-web so you are good to go for a little REST-project. Take your time and take a look

#Scala console After launching sbt you can switch to the _scala--console. There we took care that you get an already initialized Vert.x-instance and the necessary imports to start playing around. play around in sbt

sbt
> console
scala> vertx.deployVerticle(nameForVerticle[de.codepitbull.vertx.scala.chat.HttpVerticle])
scala> vertx.deploymentIDs

From here you can freely interact with the Vertx-API inside the sbt-scala-shell.

#Fat-jar Take a look at the build.sbt and search for the entry packageOptions. Enter the fully qualified class name of your primary verticle. This will be used as entry point for a generated fat-jar.

To create the runnable fat-jar use:

sbt assembly

#Dockerize The project also contains everything you need to create a Docker-container. Simply run the following command to package your fat-jar inside a Docker-container

sbt docker

To run use

docker run -p 8666:8666 default/vertx-scala-sbt

Point your browser to http://127.0.0.1:8666/hello and enjoy :)

vertx-scala-reactive-chat's People

Contributors

pflanzenmoerder 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.