init(config): add initial project configuration files
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.wrangler/state/v3/kv/miniflare-KVNamespaceObject
|
||||||
|
node_modules
|
||||||
29
package.json
Normal file
29
package.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"name": "interviewer-bot",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "AI-powered interviewer bot with video calls and calendar scheduling on Cloudflare Workers",
|
||||||
|
"main": "src/index.ts",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "wrangler dev",
|
||||||
|
"deploy": "wrangler deploy",
|
||||||
|
"tail": "wrangler tail",
|
||||||
|
"kv:create": "wrangler kv namespace create INTERVIEWS",
|
||||||
|
"kv:create:preview": "wrangler kv namespace create INTERVIEWS --preview",
|
||||||
|
"setup": "npm run kv:create && npm run kv:create:preview"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"cloudflare",
|
||||||
|
"workers",
|
||||||
|
"ai",
|
||||||
|
"interview",
|
||||||
|
"webrtc",
|
||||||
|
"scheduling"
|
||||||
|
],
|
||||||
|
"author": "",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"@cloudflare/workers-types": "^4.20241127.0",
|
||||||
|
"typescript": "^5.3.3",
|
||||||
|
"wrangler": "^3.91.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
33
wrangler.toml
Normal file
33
wrangler.toml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Interview Bot - Cloudflare Worker Configuration
|
||||||
|
name = "interviewer-bot"
|
||||||
|
main = "src/index.ts"
|
||||||
|
compatibility_date = "2024-12-01"
|
||||||
|
compatibility_flags = ["nodejs_compat"]
|
||||||
|
|
||||||
|
# AI Binding for Workers AI (routed through AI Gateway)
|
||||||
|
[ai]
|
||||||
|
binding = "AI"
|
||||||
|
|
||||||
|
# Optional: Configure AI Gateway for analytics, caching, rate limiting
|
||||||
|
# Uncomment and set your gateway ID to enable:
|
||||||
|
# [ai.gateway]
|
||||||
|
# id = "your-gateway-id"
|
||||||
|
|
||||||
|
# KV Namespace for storing interviews
|
||||||
|
[[kv_namespaces]]
|
||||||
|
binding = "INTERVIEWS"
|
||||||
|
id = "your-kv-namespace-id"
|
||||||
|
preview_id = "your-preview-kv-namespace-id"
|
||||||
|
|
||||||
|
# Development settings
|
||||||
|
[dev]
|
||||||
|
port = 8787
|
||||||
|
local_protocol = "http"
|
||||||
|
|
||||||
|
# Environment variables (optional)
|
||||||
|
[vars]
|
||||||
|
ENVIRONMENT = "development"
|
||||||
|
|
||||||
|
# Production overrides
|
||||||
|
[env.production]
|
||||||
|
vars = { ENVIRONMENT = "production" }
|
||||||
Reference in New Issue
Block a user