GithubHelp home page GithubHelp logo

isomorphic-node's Introduction

isomorphic-node

FIXME: description

Installation

Usage

You will need to install node.js and then install express and serve-static from within the project directory.

$ npm install express --save
$ npm install serve-static --save

Once you have these installed you can build and run the app using:

$ lein cljsbuild once server app
$ node resources/public/js/server-side/server.js

Development

Using Figwheel

You can run Figwheel either from the REPL or from 'lein figwheel'. The recommended approach is via the REPL.

Using CIDER in Emacs

Start a CIDER nREPL server and two nREPL buffers (one for Clojure and one for ClojureScript) by using:

C-c M-J

Note the capital 'J'

or:

M-x cider-jack-in-clojurescript

Once the buffers are started you can switch to the CLJS buffer and exit the Rhino cljs repl and connect to the app build running in the browser (make sure you run node and connect a browser):

cljs.user> :cljs/quit
user> (use 'figwheel-sidecar.repl-api)
nil
user> (start-figwheel!)
... _starts app build by default as it's first in project.clj_
...
nil
user> (cljs-repl)
Launching ClojureScript REPL for build: app ...
nil
cljs.user>

This CLJS buffer will now be connected to the browser. The easiest way to connect to the server is to switch builds

cljs.user> (switch-to-build "server")

This new buffer is now connected to the server running in node.

Examples

...

Bugs

...

Any Other Sections

That You Think

Might be Useful

License

Copyright © 2016 FIXME

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

isomorphic-node's People

Contributors

chrishowejones avatar

Watchers

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