A very simple real time application
- Sails
- React
- React-router A complete routing solution for React.js
- sails-react-store wrapper of sails.socket.io with auto blueprint
- sails-generate-isoreact simple starter kit
$ git clone [email protected]:wi2/isomorphic-sails-react-example.git
$ cd isomorphic-sails-react-example
$ npm install
$ sails lift
$ npm install -g browserify
$ browserify -r react -r react-router -r sails-react-store > assets/js/dependencies/build.js
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