Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit cc64772

Browse files
qbootjoelwurtz
authored andcommitted
Integration of SDK demo websites to docker orchestration (#483)
* Create Symfony Bundle * Add tests to Symfony Bundle + Manage response status code on kernel.terminate * Add README for Symfony Bundle * Move SDK to RedirectionIO\Client\Sdk namespace * Setup symfony docker demo containers * Add WordPress Plugin Tests + Update some existing tests * Add circleci tests PHP SDK * Setup nodejs client file structure + basic server * Working JS Client + Express server implementation * Add pure node http-server implementation example * Add documentation + examples of how to use node module * Add logging capacity to nodejs client * Add Jest tests + ESLint to nodejs client * Prepare nodejs client for deployment * Update nodejs client .gitignore + Add contribution section to README * Add SSL + DNS support to SDK demo docker with traefik * Add SDK specific orchestration to global app orchestration * Add an option called demo_sdk to fab local.start task for start all SDK related containers * Use preferred JSON protocol with the proxy * Setup Node SDK container for Docker Orchestration * Setup a SDK demo agent to Docker Orchestration * Update JS & PHP fake_agent to better match real_agent behavior * Fix unix socket connection bug in WordPress
1 parent adb0500 commit cc64772

File tree

8 files changed

+136
-124
lines changed

8 files changed

+136
-124
lines changed

examples/express/server.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import express from 'express'
22
import rio from 'redirectionio'
33

44
const app = express()
5-
const port = 8004
5+
const port = 8001
66

77
// configure redirection.io with your own agent informations
88
const config = [
@@ -15,6 +15,11 @@ const config = [
1515
'name': 'fake_agent',
1616
'host': 'localhost',
1717
'port': 3100
18+
},
19+
{
20+
'name': 'demo_agent',
21+
'host': 'sdk_agent',
22+
'port': 8000,
1823
}
1924
]
2025

examples/http/server.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createServer } from 'http'
22
import rio from 'redirectionio'
33
import url from 'url'
44

5-
const port = 8003
5+
const port = 8002
66

77
// configure redirection.io with your own agent informations
88
const config = [
@@ -15,6 +15,11 @@ const config = [
1515
'name': 'fake_agent',
1616
'host': 'localhost',
1717
'port': 3100
18+
},
19+
{
20+
'name': 'demo_agent',
21+
'host': 'sdk_agent',
22+
'port': 8000,
1823
}
1924
]
2025

0 commit comments

Comments
 (0)