Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist
.jitar
dist
node_modules
package-lock.json
11 changes: 10 additions & 1 deletion examples/access-protection/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"name": "jitar-access-protection-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json",
"gateway": "jitar start --service=services/gateway.json",
"worker-public": "jitar start --service=services/public.json",
"worker-protected": "jitar start --service=services/protected.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
9 changes: 7 additions & 2 deletions examples/cors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
"type": "module",
"private": true,
"scripts": {
"clean": "rm -rf dist .jitar",
"clean": "rimraf dist .jitar",
"compile": "tsc && jitar build",
"copy": "cpx -u 'src/index.html' dist",
"build": "npm run clean && npm run copy && npm run compile",
"standalone": "jitar start --service=services/standalone.json",
"client": "node dist/client.js"
},
"devDependencies": {
"cpx2": "*"
"cpx2": "^8.0.0",
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
14 changes: 4 additions & 10 deletions examples/data-transportation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,21 @@ npm install
npm run build
```

To start Jitar we need four terminal sessions to start the repository, gateway, and workers separately. The starting order is of importance.
To start Jitar we need three terminal sessions to start the gateway, and workers separately. The starting order is of importance.

**Repository** (terminal 1)

```bash
npm run repo
```

**Gateway** (terminal 2)
**Gateway** (terminal 1)

```bash
npm run gateway
```

**Account segment** (terminal 3)
**Account segment** (terminal 2)

```bash
npm run worker-account
```

**Helpdesk segment** (terminal 4)
**Helpdesk segment** (terminal 3)

```bash
npm run worker-helpdesk
Expand Down
11 changes: 10 additions & 1 deletion examples/data-transportation/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"name": "jitar-data-transportation-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json",
"gateway": "jitar start --service=services/gateway.json",
"worker-account": "jitar start --service=services/account.json",
"worker-helpdesk": "jitar start --service=services/helpdesk.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
14 changes: 4 additions & 10 deletions examples/error-handling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,21 @@ npm install
npm run build
```

To start Jitar we need four terminal sessions to start the repository, gateway, and workers separately. The starting order is of importantance.
To start Jitar we need three terminal sessions to start the gateway, and workers separately. The starting order is of importantance.

**Repository** (terminal 1)

```bash
npm run repo
```

**Gateway** (terminal 2)
**Gateway** (terminal 1)

```bash
npm run gateway
```

**Data segment** (terminal 3)
**Data segment** (terminal 2)

```bash
npm run worker-data
```

**Process segment** (terminal 4)
**Process segment** (terminal 3)

```bash
npm run worker-process
Expand Down
11 changes: 10 additions & 1 deletion examples/error-handling/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"name": "jitar-error-handling-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json",
"gateway": "jitar start --service=services/gateway.json",
"worker-data": "jitar start --service=services/data.json",
"worker-process": "jitar start --service=services/process.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
11 changes: 10 additions & 1 deletion examples/health-checks/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "jitar-health-checks-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
13 changes: 11 additions & 2 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "jitar-helloworld-example",
"private": true,
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
14 changes: 4 additions & 10 deletions examples/load-balancing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,21 @@ npm install
npm run build
```

To start Jitar we need four terminal sessions to start the repository, gateway, and workers separately. The starting order is of importance.
To start Jitar we need three terminal sessions to start the repository, gateway, and workers separately. The starting order is of importance.

**Repository** (terminal 1)

```bash
npm run repo
```

**Gateway** (terminal 2)
**Gateway** (terminal 1)

```bash
npm run gateway
```

**Worker 1** (terminal 3)
**Worker 1** (terminal 2)

```bash
npm run worker1
```

**Worker 2** (terminal 4)
**Worker 2** (terminal 3)

```bash
npm run worker2
Expand Down
11 changes: 10 additions & 1 deletion examples/load-balancing/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"name": "jitar-load-balancing-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json",
"gateway": "jitar start --service=services/gateway.json",
"worker1": "jitar start --service=services/worker1.json",
"worker2": "jitar start --service=services/worker2.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
11 changes: 10 additions & 1 deletion examples/middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "jitar-middleware-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
11 changes: 10 additions & 1 deletion examples/multi-version/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "jitar-multi-version-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
13 changes: 11 additions & 2 deletions examples/resources/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "jitar-resources-example",
"private": true,
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist .jitar && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
14 changes: 4 additions & 10 deletions examples/segmentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,21 @@ npm install
npm run build
```

To start Jitar we need four terminal sessions to start the repository, gateway, and workers separately. The starting order is of importance.
To start Jitar we need three terminal sessions to start the gateway, and workers separately. The starting order is of importance.

**Repository** (terminal 1)

```bash
npm run repo
```

**Gateway** (terminal 2)
**Gateway** (terminal 1)

```bash
npm run gateway
```

**Data segment** (terminal 3)
**Data segment** (terminal 2)

```bash
npm run worker-data
```

**Process segment** (terminal 4)
**Process segment** (terminal 3)

```bash
npm run worker-process
Expand Down
11 changes: 10 additions & 1 deletion examples/segmentation/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"name": "jitar-segmentation-example",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"build": "rm -rf dist && tsc && jitar build",
"build": "rimraf dist .jitar && tsc && jitar build",
"standalone": "jitar start --service=services/standalone.json",
"gateway": "jitar start --service=services/gateway.json",
"worker-data": "jitar start --service=services/data.json",
"worker-process": "jitar start --service=services/process.json"
},
"devDependencies": {
"rimraf": "^6.0.1",
"typescript": "^5.8.3"
},
"dependencies": {
"jitar": "^0.10.0"
}
}
Loading