Giter VIP home page Giter VIP logo

flurfunk-web's Introduction

Flurfunk web frontend

A client for the Flurfunk server, written in ClojureScript and built using Leiningen.

Building and running

Installing Leiningen 2

curl -O https://raw.github.com/technomancy/leiningen/preview/bin/lein
chmod +x lein
mv lein ~/bin/ # Make sure that ~/bin/ exists and is on the $PATH

Development mode

lein cljsbuild auto
lein ring server-headless

Then go to http://localhost:3000/dev.

This will simulate a Flurfunk server in-browser. If you want to connect to a real one, tick the Use real server checkbox. The URL is set as in production mode, see below.

Production mode

lein cljsbuild once
lein ring server

This will try to connect to a server running at http://localhost:4000. If your server is running somewhere else, you need to set the flurfunk.server system property:

JAVA_OPTS="-Dflurfunk.server=http://localhost:1337" lein ring server

Mobile style

Flurfunk comes with a style optimised for mobile devices. You can see it in production mode on http://localhost:3000/mobile and in development mode on http://localhost:3000/mobile/dev.

Creating a WAR

lein ring uberwar flurfunk-web.war

This will create target/flurfunk-web.war.

When running in an application server like Tomcat as non-root app (i.e. with a context path), flurfunk-server is expected at the URL http://localhost:8080/flurfunk-server. You can overwrite this by setting the system property flurfunk.server.

Creating a standalone JAR that includes Jetty

lein uberjar

Running the standalone JAR

java -jar target/flurfunk-web.jar

This will try to connect to a server running at http://localhost:4000. If your server is running somewhere else, you need to set the flurfunk.server system property:

java -jar -Dflurfunk.server=http://localhost:1337 target/flurfunk-web.jar 

License

Copyright 2012 Viaboxx GmbH

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.

flurfunk-web's People

Contributors

fhd avatar tfnico avatar

Stargazers

James Moger avatar l0rdn1kk0n avatar Noah Zucker avatar  avatar  avatar gaurav patel avatar Volodymyr Epifanov avatar cola-zero avatar

Watchers

cola-zero avatar Matthew M. Nelson avatar  avatar Rob Wills avatar  avatar James Cloos 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.