Code Monkey home page Code Monkey logo

play20's Introduction

Play 2.0 preview

If something goes wrong with the dependency management, fisrt try to run ./framework/cleanIvyCache script from within the root folder!

Installing

Just checkout the git repository, and add the play script to your PATH. Everything is included.

Building

$ cd framework
$ ./build
> publish-local

Creating an application

Create a new directory for your application, and type play new.

$ mkdir myNewApp
$ play new

Running the Play console

Enter any Play application directory and type play.

$ cd myNewApp
$ play

Running your application in development mode

In the Play console just type run, and the server will start on port 9000. Then go to http://localhost:9000/ to see the application.

In development mode, the project compilation will be automatically triggered when you refresh your browser. Any compilation error will be reported in the browser. Runtime errors and template errors should be correctly reported as well.

Type Ctrl+D to stop the server and come back to the Play console.

Using SBT commands

SBT commands are available, including:

  • clean
  • compile
  • update
  • package

Starting the application in prod

From the Play console, type play start. It will fork a new JVM and start the application in production mode. The application logs are displayed until you type Ctrl+D; then you will exit the Play console, and the server will keep running in background. You can also type Ctrl+C to kill both the console and the server.

Packaging the application for standalone usage

From the Play console, type play dist. It will package your application including all dependencies as a zip file in the /dist directory. Unzip this directory anywhere and use the run script to start the application.

play20's People

Contributors

guillaumebort avatar ph2734 avatar sadache avatar erwan avatar sgodbillon avatar nicmarti avatar

Stargazers

rajbalam avatar

Watchers

James Cloos avatar rajbalam 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.