GithubHelp home page GithubHelp logo

jibe-b / rww-play Goto Github PK

View Code? Open in Web Editor NEW

This project forked from read-write-web/rww-play

0.0 2.0 0.0 3.45 MB

read write web Play

Scala 32.43% Java 1.73% HTML 3.18% Shell 0.09% CSS 5.02% JavaScript 57.55%

rww-play's Introduction

rww-play

This is an implementation in Play of a number of tools to build a Read-Write-Web server using Play2.x and akka. It is very early stages at present and it implements sketches of the following

This currently works in the 2.3.x-TLS branch of the fork of Play 2.x, which comes with TLS support and a few more patches.

We use Travis CI to verify the build: Build Status

Community

This project is moving fast. If you have any problems don't hesitate to participate, ask questions, whoever small your problem seems to be. There are no stupid questions!

Getting going

 $ git clone git://github.com/read-write-web/rww-play.git 

Running in single user mode

To start Play in secure mode with lightweight client certificate verification (for WebID); that is, a self-signed certificate:

 $ ./activator
 [RWWeb] $ idea with-sources=yes	// if you want to run intelliJ
 [RWWeb] $ eclipse with-source=true	// if you want to run eclipse Scala IDE
 [RWWeb] $ compile
 [RWWeb] $ run -Dhttps.port=8443 -Dhttps.trustStore=noCA -Dakka.loglevel=DEBUG -Dakka.debug.receive=on -Drww.root.container.path=test_www 

Then you can direct your browser to: https://localhost:8443/2013/

Running with multiple users securely

If you want to have multiple users on your server, it is best to give each user a subdomain for JS security. This will protect his space and his javascript from potentially dangerous javascript code uploaded by others.

network config

To start Play in secure mode with lightweight client certificate verification (for WebID) In file: conf/application.conf set the smtp parameters: host= and user= of your mail provider server.

On Unix in /etc/hosts add host names for the subdomains you will create, e.g. :

127.0.0.1 jmv.localhost
127.0.0.1 jmv1.localhost
127.0.0.1 jmv2.localhost

Installing RWW apps

(untested in dev branch as of this commit)

The RWW apps are stored in other git repositories. One can run the script ./install-app.sh to install or update the RWW apps that we ship with the platform. Check the script content, it is simply a git clone. ( If installing on a public server make sure the proxy url is set. )

For subdomains on your local machine you will need to edit /etc/hosts for each server. For machines on the web you can just assign all domains to the same ip address.

[RWWeb] $ run -Dhttps.port=8443 -Dhttps.trustStore=noCA -Drww.subdomains=true -Dhttp.hostname=localhost -Drww.subdomains=true -Dsmtp.password=secret

You can the create yourself a subdomain by pointing your browser to the root domain: https://localhost:8443/. This will lead you to the account creation page, which will allow you to create subdomains on your server. An e-mail will be sent to your e-mail address for verification ( but you will be able to find the link in the logs if the e-mail server is not set up).

Documentation

Further documentation can be found on the rww-play wiki.

Licence

Copyright 2013-2014 Henry Story

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

rww-play's People

Contributors

bblfish avatar slorber avatar letnotimitateothers avatar ouertani avatar spiroid avatar michielbdejong avatar jmvanel avatar ahoy-jon avatar alistair-johnson avatar

Watchers

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