Hi,
I try to run current master codebase. There is remote machine on openstack with 
all sdc docker containers deployed which was intended to use as remote backend 
to connect local FE to.

Activities performed on my laptop:
- full sdc compiled and build successfully using mvn clean install
- node projects built via npm install - both dox-sequence-diagram ui and 
openecomp-ui (former dox-ui I suppose based on README.md)
- devConfig.json created based on devConfig.default.json (placed in same dir: 
sdc/openecomp-ui/devConfig.json, file in attachement)

I was trying to connect FE directly from code on my computer using node start 
command placed in package.json file: (gulp dev && webpack-dev-server --progress)

In gulp task 'copy-stuff' only few files are copied to dist dir: index.html, 
heat.html and content of webapp-onboarding (META-INF, WEB-INF dirs and 
onboarding.xml file).
As there were problems with formatting (prettier plugin) I have disabled eslint 
checking by adding source dirs to eslintignore.
After 'node start' rerun  webpack sets up server on port 9000, but nothing is 
rendering except from page title (screenshot attached).
I also tried to run sdc FE manually by deploying category-fe.war and 
onboarding-fe.war on jetty server locally, but the same effect can be observed 
(rendered title only).
Could you correct my understanding of how this local dev setup should be 
handled?

Best regards,
Sandra



________________________________
From: Lando,Michael <[email protected]>
Sent: Tuesday, June 19, 2018 3:46 AM
To: Koblosz, Sandra (Nokia - PL/Wroclaw); [email protected]; ZIV, AVI; 
VISHNEVETSKIY, STANISLAV; [email protected]; GRAMA STRUGO, TALI; 
[email protected]
Subject: Re: [onap-discuss][sdc] SDC FE (Openecomp-ui) local deployment issues 
- reactjs not rendering

Hi,
What branch are you building from?
What maven commend are you using?

Sent from Email+ secured by MobileIron

-------- Original Message --------
From: "Koblosz, Sandra (Nokia - PL/Wroclaw)" 
<[email protected]<mailto:[email protected]>>
Date: Mon, Jun 18, 2018, 23:14
To: "Lando,Michael" 
<[email protected]<mailto:[email protected]>>,"[email protected]<mailto:[email protected]>"
 <[email protected]<mailto:[email protected]>>,"ZIV, AVI" 
<[email protected]<mailto:[email protected]>>,"VISHNEVETSKIY, STANISLAV" 
<[email protected]<mailto:[email protected]>>,"[email protected]<mailto:[email protected]>"
 <[email protected]<mailto:[email protected]>>,"GRAMA STRUGO, TALI" 
<[email protected]<mailto:[email protected]>>,"[email protected]<mailto:[email protected]>"
 <[email protected]<mailto:[email protected]>>,"Koblosz, Sandra (Nokia - 
PL/Wroclaw)" <[email protected]<mailto:[email protected]>>
Subject: [onap-discuss][sdc] SDC FE (Openecomp-ui) local deployment issues - 
reactjs not rendering

Hi all SDC contributors,


I was trying to setup SDC frontend on local environment  (my laptop with 
Ubuntu) and connect it to BE on remote machine. After filling up devConfig.json 
file with BE ip (proxyTarget variable) I had  managed to compile and run server 
with webpack, but nothing except from index title has appeared on main page - 
no React element rendered at all.

The clue I came across is that logic in gulp tasks do not copy all files - 
after finishing all gulp tasks, not all needed files are present in dist 
directory.

Could you provide me with some advices how to setup SDC FE locally, (e.g. 
sample devConfig.json file or how result of React rendering on index should 
look like after all gulp tasks)? The readme is pretty minimalistic and does not 
contain troubleshooting.


Best regards,

Sandra

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10540): https://lists.onap.org/g/onap-discuss/message/10540
Mute This Topic: https://lists.onap.org/mt/22675703/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Attachment: devConfig.json
Description: devConfig.json

Reply via email to