Steps:
-
Start PostgreSQL from docker
$ docker run -d --rm -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=syndesis postgres
-
Start Syndesis backend (I run io.syndesis.runtime.Application from IDE), with JVM options:
-Dendpoints.test_support.enabled=true -Ddeployment.load-demo-data=false -Dencrypt.key=hello
-
Start tinyproxy from a directory that has
tinyproxy.conf
(below)$ tinyproxy -d -c tinyproxy.conf
-
Modify the
$SYNDESIS/app/ui/src/config.json
(sample config is in the repo) theapiEndpoint
needs to point to tinyproxy (http://localhost:9090
):"apiBase": "http://localhost:9090"
-
Start the UI with from
$SYNDESIS/app/ui
$ yarn start
-
Open the browser to https://localhost:4200 use Chrome and Developer Tools
-
Place a
debugger;
statement in a.ts
file as a first breakpoint to have somewhere to start debugging
On OSX I had to install tiny proxy using:
brew install tinyproxy --with-reverse
My src/config.json starts with
and I had to
npm rebuild node-sass
and in app/ui/package.json turn off ssl so that the rest calls go through.
"start": "yarn ng serve --ssl false