Coder Social home page Coder Social logo

awesome-play's Introduction

awesome-play

Introduction

Upgrade play version to 2.5.5

This project is an use case for Play Framework 2 in real world, Play Framework is effective, mature and easy to use. But it was written by Scala, and looks difficult to those who only knew Java. If you are from Java world and want adopt Play Framework in your project, you can use this project as scaffold.

Architecture

Play 2.5.5 + Spring 4.2.6 + Hibernate 4.3.6

Prerequisites

1.JDK8+
2.Scala 2.11.8+ 3.sbt 0.13.12+ 4.MySQL 5.5+ or MariaDB 10+
5.Redis 2.7+

Project Structure

  • admin:web module
  • common:utility module
  • order-center: business logic module
  • project: sbt build directory

How To Run

Init database

Run PATH/docs/test-object.sql in you MySQL terminal:

create database play;
source /PATH/docs/test-object.sql -- change it to your path

Edit configuration file

Open PATH/admin/conf/application.conf, replace this with your own configuration:

db.default {
  driver = com.mysql.jdbc.Driver
  url = "jdbc:mysql://localhost:3306/play?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull"
  username = root
  password = "root"

...

redis {
  host = 127.0.0.1
  port = 6379

...

Let's rock!

Open your favorite terminal, input this:

cd /PATH # change it to your project path
sbt
project admin
run

If everything goes well, you could see this:

Open http://localhost:9000/ in your browser, you can see this page:

Enjoy!

Ps. I have some Chinese blogs to introduce Play :)

awesome-play's People

Contributors

sunnykaka avatar

Watchers

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