Giter Site home page Giter Site logo

smahood / rente Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enterlab/rente

0.0 2.0 0.0 47 KB

Rente: Clojure, ClojureScript, Reagent (react) + Sente (web sockets). Heroku-ready!

Home Page: http://enterlab.com

License: Eclipse Public License 1.0

Clojure 92.68% HTML 7.31% CSS 0.01%

rente's Introduction

Usage

Clone, and cd into the rente folder.

lein figwheel

Wait for figwheel to finish and notify browser of changed files! Then in another terminal tab:

lein run

point browser to: http://localhost:8080

Open up your browser console, which will log the data returned from the server when you click either of the 2 buttons for socket with/without callback (pull/push).

Rente Demo

Rente can be seen running here:

https://enterlab-rente.herokuapp.com/

(the application goes idle after a while, and may take around 30 seconds to wake up)

Deploy to Heroku

To make Rente run on Heroku, you need to let Leiningen on Heroku use the "package" build task.

To do this, and point Leiningen on Heroku to the "package" target, add the following config variable to Heroku by running this command:

heroku config:add LEIN_BUILD_TASK=package

Everything is nicely wrapped in shiny purple foil if you simply click this button:

Deploy

Enjoy!

Noobs

Newbies can start here.

Install Leiningen - it may seem hard, but only takes a minute (at least on a real OS, perhaps up to 5 minutes on Windows): http://leiningen.org/

If you don't know Clojure, start here: http://clojure.org

Other entry level resources:

https://aphyr.com/posts/301-clojure-from-the-ground-up-welcome

http://www.tryclj.com/

http://www.clojurebook.com/

Comments & Suggestions

Please don't hesitate to contact us if you have any questions/suggestions etc.!

Mobile App?

If you're interested in seeing how to use this setup to build a "native"-ish mobile app for iOS and Android built with Cordova, take a look at Enterlab CorDeviCLJS here: https://github.com/enterlab/cordevicljs.

Special Thanks goes to

Dan Holmsand (https://github.com/holmsand) and contributors for Reagent (https://github.com/reagent-project/reagent)

Peter Taoussanis (https://github.com/ptaoussanis) for Sente (https://github.com/ptaoussanis/sente)

Inspired by https://github.com/gsnewmark/gsn-spa-template.git

License

Copyright © Enterlab 2014-2016

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

rente's People

Contributors

luposlip avatar jkutner avatar tyler-anderson avatar karad avatar

Watchers

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