Skip to content

Commit

Permalink
Merge pull request #47 from restackio/encryptionExample
Browse files Browse the repository at this point in the history
Add encryption example
  • Loading branch information
aboutphilippe authored Nov 21, 2024
2 parents 7e82589 + 8ac8901 commit 8788f46
Show file tree
Hide file tree
Showing 32 changed files with 3,530 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/encryption/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
OPENAI_API_KEY=

# Restack

RESTACK_ENGINE_ID=
RESTACK_ENGINE_ADDRESS=
RESTACK_ENGINE_API_KEY=

RESTACK_CLOUD_TOKEN=
41 changes: 41 additions & 0 deletions examples/encryption/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "sdk-example-ts",
"version": "1.0.0",
"description": "Basic OpenAI example",
"main": "index.js",
"scripts": {
"start": "ts-node src/services.ts",
"start.watch": "nodemon src/services.ts",
"dev": "pnpm start.watch",
"codec": "ts-node src/codec-server.ts",
"build": "tsc --build",
"clean": "rm -rf node_modules",
"schedule": "ts-node ./scheduleWorkflow.ts",
"restack-up": "node restack_up.mjs"
},
"nodemonConfig": {
"execMap": {
"ts": "ts-node"
},
"ext": "ts",
"watch": [
"src"
]
},
"dependencies": {
"@restackio/ai": "^0.0.84",
"@temporalio/workflow": "^1.11.2",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"openai": "^4.71.1",
"yargs": "^17.7.2",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.23.3"
},
"devDependencies": {
"@restackio/restack-sdk-cloud-ts": "^1.0.15",
"@types/node": "^20.16.9",
"nodemon": "^2.0.22",
"ts-node": "^10.9.2"
}
}
Loading

0 comments on commit 8788f46

Please sign in to comment.