https://github.com/pmlopes/vertx-react-client-server-rendering
https://github.com/pmlopes/vertx-react-client-server-rendering
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmlopes/vertx-react-client-server-rendering
- Owner: pmlopes
- Created: 2016-09-29T09:04:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T09:04:50.000Z (over 9 years ago)
- Last Synced: 2025-05-07T19:09:00.414Z (about 1 year ago)
- Language: Java
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vert.x Web + Universal Rendering boilerplate
React javascript framework has optional server side rendering (SSR) support. The idea is to render everything on the backend when loading the page first time, but everything after that is rendered on the frontend.
The idea behind this is that we can preload the html with content for the first view of the page and once all JavaScript code has been loaded on the client side rendering is taken over by React on the browser.
## What this boilerplate does **NOT** contain:
The boilerplate does not contain the react distribution. You can get it like this:
```
wget -qO- https://github.com/facebook/react/releases/download/v15.3.2/react-15.3.2.zip | jar xvf /dev/stdin
```
## What this boilerplate contains:
### package.json
A minimal set of `NPM` packages and tools to assist during development.
### .editorconfig
A simple code style convention for the project.
### .babelrc
A minimal `.babelrc` config to allow compilation of `JSX` to today's `JavaScript`.
### gulpfile.js
A minimal `gulp` script to concatenate and compile JSX to a single bundle.
### pom.xml
A minimal `maven` project that packages a runnable `fat-jar`.
### src/main/java
* src/main/java/io.vertx.react.JSLoader
* src/main/java/io.vertx.react.impl.JSLoaderImpl
A simple `JS` loader to load the universal rendering app on the server side.
* src/main/java/io.vertx.react.ServerVerticle
An empty HTTP server.
### devmode.sh
A simple script to allow automatic rebuild + redeploy during development.