Skip to content

Instantly share code, notes, and snippets.

@zregvart
Last active January 8, 2018 11:26
Show Gist options
  • Select an option

  • Save zregvart/21bb526d2c608b92d322e7c9ee4b3dfa to your computer and use it in GitHub Desktop.

Select an option

Save zregvart/21bb526d2c608b92d322e7c9ee4b3dfa to your computer and use it in GitHub Desktop.

Revisions

  1. zregvart revised this gist Dec 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ Steps:

    $ yarn start

    6. Open the browser to [https<span></span>://localhost:4200](https://localhost:4200) use Chrome and Developer Tools
    6. Open the browser [to https://localhost:4200](https://localhost:4200) use Chrome and Developer Tools

    7. Place a `debugger;` statement in a `.ts` file as a first breakpoint to have somewhere to start debugging

  2. zregvart revised this gist Dec 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ Steps:

    $ yarn start

    6. Open the browser to [!https://localhost:4200](https://localhost:4200) use Chrome and Developer Tools
    6. Open the browser to [https<span></span>://localhost:4200](https://localhost:4200) use Chrome and Developer Tools

    7. Place a `debugger;` statement in a `.ts` file as a first breakpoint to have somewhere to start debugging

  3. zregvart revised this gist Dec 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ Steps:

    $ yarn start

    6. Open the browser to [`https://localhost:4200`](https://localhost:4200) use Chrome and Developer Tools
    6. Open the browser to [!https://localhost:4200](https://localhost:4200) use Chrome and Developer Tools

    7. Place a `debugger;` statement in a `.ts` file as a first breakpoint to have somewhere to start debugging

  4. zregvart revised this gist Dec 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ Steps:

    $ yarn start

    6. Open the browser to [https://localhost:4200](https://localhost:4200) use Chrome and Developer Tools
    6. Open the browser to [`https://localhost:4200`](https://localhost:4200) use Chrome and Developer Tools

    7. Place a `debugger;` statement in a `.ts` file as a first breakpoint to have somewhere to start debugging

  5. zregvart revised this gist Dec 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ Steps:

    $ yarn start

    6. Open the browser to https://localhost:4200 use Chrome and Developer Tools
    6. Open the browser to [https://localhost:4200](https://localhost:4200) use Chrome and Developer Tools

    7. Place a `debugger;` statement in a `.ts` file as a first breakpoint to have somewhere to start debugging

  6. zregvart revised this gist Dec 21, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -17,8 +17,8 @@ Steps:
    "apiBase": "http://localhost:9090"

    5. Start the UI with from `$SYNDESIS/app/ui`
    $ yarn start

    $ yarn start

    6. Open the browser to https://localhost:4200 use Chrome and Developer Tools

  7. zregvart created this gist Dec 21, 2017.
    27 changes: 27 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    Steps:
    1. Start PostgreSQL from docker

    $ docker run -d --rm -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=syndesis postgres

    2. 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

    3. Start [tinyproxy](https://tinyproxy.github.io/) from a directory that has `tinyproxy.conf` (below)

    $ tinyproxy -d -c tinyproxy.conf

    4. Modify the `$SYNDESIS/app/ui/src/config.json` (sample config is in the [repo](https://github.com/syndesisio/syndesis/blob/master/app/ui/src/config.json.example))
    the `apiEndpoint` needs to point to tinyproxy (`http://localhost:9090`):

    "apiBase": "http://localhost:9090"

    5. Start the UI with from `$SYNDESIS/app/ui`

    $ yarn start

    6. Open the browser to https://localhost:4200 use Chrome and Developer Tools

    7. Place a `debugger;` statement in a `.ts` file as a first breakpoint to have somewhere to start debugging


    14 changes: 14 additions & 0 deletions tinyproxy.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    Port 9090
    ReverseOnly Yes
    ReversePath "/" "http://localhost:8080/"
    AddHeader "X-Forwarded-User" "developer"
    AddHeader "X-Forwarded-Access-Token" "dummy-token"

    MaxClients 100
    MinSpareServers 5
    MaxSpareServers 20
    StartServers 10
    MaxRequestsPerChild 0

    PidFile "tinyproxy.pid"
    LogFile "tinyproxy.log"