Skip to content

An isomorphic Sails React Example with simple dispatcher and blueprint component

License

Notifications You must be signed in to change notification settings

wi2/isomorphic-sails-react-example

Repository files navigation

Isomorphic example with React and sails

A very simple real time application

with

Usage

$ git clone git@github.com:wi2/isomorphic-sails-react-example.git

$ cd isomorphic-sails-react-example

$ npm install

$ sails lift

dependencies : Browserify

$ npm install -g browserify
regenerate dependencies
$ browserify -r react -r react-router -r sails-react-store > assets/js/dependencies/build.js

test real time

go to http://localhost:1337 and click on articles and write in another console :

$ curl -H "Content-Type: application/json" -X POST -d '{"title": "post 1", "content": "It is my first post..."}' http://localhost:1337/post
$ curl -H "Content-Type: application/json" -X POST -d '{"title": "post 2", "content": "It is my second post..."}' http://localhost:1337/post
$ curl -H "Content-Type: application/json" -X POST -d '{"title": "post 3", "content": "It is my third post..."}' http://localhost:1337/post

About

An isomorphic Sails React Example with simple dispatcher and blueprint component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published