Coder Social home page Coder Social logo

cocktail-bar's Introduction

Implementing Reactive Apps workshop

This is a one day Reactive workshop to implement Reactive application using Akka and Play with Java and Scala examples.

Case study

We are going to build the Cocktail bar:

  • Drinks like Akkarita, Mai Play and Pina Scalada are served to guests.
  • Guests can get drunk, waiters can get frustrated
  • Barkeepers can become bottlenecks
  • Mission: Keep Hakky Hour healthy!

Prerequisites

This course is best suited for individuals with experience in Java 8 (Scala is plus)

Software: Java SDK 1.8

Setup instructions

  • Download Activator 1.3.6 minimal from here
  • Unzip typesafe-activator-1.3.5-minimal.zip to your local disk
  • Add activator to your PATH
    • Unix systems: export PATH=$PATH:/path/to/activator-dir
    • Windows: Update the path in the global environment variables
  • Clone this repo
  • cd to the cocktail-bar directory
  • start activator: cocktail-bar$ activator This should take you to the activator interactive shell
  • Play with some activator commands listed below

activator is our build tool for this project

Summary of important Activator Commands

  • exit ends the activator session
  • help lists the available commands
  • compile compiles the main sources
  • console starts the REPL with the project on the classpath
  • run looks for an application and runs it
  • clean deletes all output in the target directory
  • reload reloads the activator session

Setup an IDE (IntelliJ IDEA)

  • Download and install IntelliJ 14 Community Edition and install the Scala plugin
  • Open IntelliJ and choose cocktail-bar project
  • In the Import Project from SBT window select:
    • Use auto-import
    • Download sources and docs
    • Download SBT sources and docs
    • Java 1.8 as the Project SDK

Setup an IDE (Eclipse)

  • You can download the prepackaged and preconfigured Scala IDE for your platform from scala-ide.org/download/sdk.html

  • Go to your cocktail-var activator console and run the command eclipse with-source=true

    <activator prompt>eclipse with-source=true

  • This will generate eclipse project files.

  • Import the cocktail-bar project in eclipse

For windows users only

The case study makes heavy use of the command line. If you use Windows, we recommend to install the following tools:

  • ConEmu: Terminal with multi-tab support
  • Tail: Monitor log file changes

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.