git clone https://github.com/moqui/moqui-framework
cd moqui-framework/
gradle getComponent -Pcomponent=moqui-react-ssr
git clone https://github.com/shendepu/moqui-react-ssr-demo.git runtime/component/moqui-react-ssr-demo
gradle getRuntime
gradle build load run
Which gets to:
2018-02-15 10:49:32.186:INFO:oejs.AbstractConnector:main: Started ServerConnector@1eb53067{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2018-02-15 10:49:32.187:INFO:oejs.Server:main: Started @65765ms
0:49:38.702 INFO RequireNewTx o.m.i.e.EntityDataFeed Built entity.data.feed.info cache for in 2ms, entries for 0 entities
10:49:38.710 INFO 099983479-12 o.m.i.e.EntityDbMeta Creating table for moqui.server.Visitor pks: [visitorId]
10:49:38.713 INFO 099983479-12 o.m.i.e.EntityDbMeta Created table VISITOR for entity moqui.server.Visitor in group transactional
10:49:38.715 INFO 099983479-12 o.m.i.e.EntityFacadeImpl Created 136 automatic reverse relationships
10:49:38.717 INFO 099983479-12 o.m.i.c.UserFacadeImpl Created new Visitor with ID [100000] in session [node052kkas6nn4viexaylso1cxlw0]
10:49:38.725 INFO 099983479-12 o.m.i.e.EntityDbMeta Creating table for moqui.server.Visit pks: [visitId]
10:49:38.726 INFO 099983479-12 o.m.i.e.EntityDbMeta Created table VISIT for entity moqui.server.Visit in group transactional
10:49:38.729 INFO 099983479-12 o.m.i.c.UserFacadeImpl Created new Visit with ID [100000] in session [node052kkas6nn4viexaylso1cxlw0]
shendepu
shendepu4965048
[object Object]
10:49:49.773 WARN 099983479-12 c.m.s.ReactRender fnReject error:
SyntaxError: Invalid JSON: :1:0 Expected json literal but found <
<!DOCTYPE html>
^
10:49:50.962 INFO 099983479-12 o.m.i.s.ScreenRenderImpl apps/react-ssr-demo/counter/index.html [] in 12214ms (text/html;charset=utf-8) session node052kkas6nn4viexaylso1cxlw0
I am running:
MacBook-Pro:moqui-framework simon$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Mac OS X 10.12.6 x86_64
I ran the following:
Which gets to:
When I hit the page at http://localhost:8080/apps/react-ssr-demo/counter it hangs at showing "Login...". On the console it has a warning:
I am running:
and