Skip to content

Commit

Permalink
Added a README
Browse files Browse the repository at this point in the history
  • Loading branch information
pmlopes committed May 29, 2017
1 parent ebbba69 commit e862be3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions reactjs-server-side-rendering/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Vert.x + React.js SSR

This projects aims at showing [Vert.x](http://vertx.io) and [react.js]https://facebook.github.io/react/) server side rendering capabilities.

To run the project, simply run `npm install && npm start` from the project's root directory, then point your browser at [http://localhost:8080](http://localhost:8080) to get started.

The example shows how to reuse `react.js` code in your server and use it to prerender the start HTML page.

It also shows how to use `webpack` and `babel` in order to overcome the limitations of Nashorn with respect to javascript language level.

The client code (Browser) lives under `src/client` and the server code under `src/server`. All code under `src/shared` is shared by both client and server (typically your react application logic).

For a more productive development workflow, the `package.json` file also has a `watch` script using `vert.x`, if run, it will start your application and on file save it will reload the application for you.

0 comments on commit e862be3

Please sign in to comment.