Skip to content

A Scala project template bundled with Play 2.x + TypeScript + Webpack + Scalariform + Scalastyle + Configured security options by default.

Notifications You must be signed in to change notification settings

shouldbee/play-scala.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Play Framework 2.3.9 Project Template

A Scala project template bundled with Play 2.x + TypeScript + Webpack + Scalariform + Scalastyle + Configured security options by default.

Contents

Client side:

  • altJS
    • TypeScript: TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
  • preprocessors:
    • Stylus: expressive, robust, feature-rich CSS preprocessor
    • Jade: robust, elegant, feature rich template engine for nodejs
  • code quality:
    • tslint: a static analysis linter for TypeScript.
  • build tools:
    • Webpack: Packs CommonJs/AMD modules for the browser.
    • Webpack + Play integration:
      • Assets are auto-reloaded by activator run.
      • Assets are minified before activator dist.
  • bundled libraries:
    • jQuery 2.1.4
  • others:
    • source map (only enabled in dev environment)
    • production codes are minified.
    • console.log is automatically removed from production codes.

Storages:

  • ScalikeJDBC: A tidy SQL-based DB access library for Scala developers.
  • MySQL Connector

Server behavior modifications:

Code quality supports:

  • Very strict scalac options.
  • Scalariform: Automatic code reforming on compile.
  • Scalastyle: Scala style checker with very strict rules.
  • Scapegoat: Scala style checker for optional.

Others:

  • Documentation is disabled to speed up compilation by default.

Requirements

  • npm
  • node.js

Quick Start

Generate a new project using giter8.

g8 shouldbee/play-scala
cd yourapp

Install node modules.

make bootstrap

Then start Play server.

./activator run

Open http://localhost:9000/ with your browser and enjoy!

Customize

/node_modules and /typings are git-ignored by default

If you want to check in node_modules and types, you can comment out these lines of .gitignore.

About

A Scala project template bundled with Play 2.x + TypeScript + Webpack + Scalariform + Scalastyle + Configured security options by default.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published