Import a 3D Model and automatically assign and export animations
TypeScript
add some survey initial setup stuff with cloudflare
Scott Petrovicfdd42ecee871
diff --git a/survey/readme.md b/survey/readme.mdnew file mode 100644index 0000000..f5f22aa--- /dev/null+++ b/survey/readme.md@@ -0,0 +1,8 @@+# Survey original setup instructions++I am using Cloudflare for this since that is just where I am doing things. If something else is used, this process won't work. I am mostly writing this when I forget what I did, or need to set it up later on if I have to change platforms.++1. Create a new database on your Cloudflare account+2. Get the UUID of the database usin the npx command in command prompt: npx wrangler d1 list+3. Run this command to create the table that stores responses: npx wrangler d1 execute m2m-survey-responses --remote --file=survey/schema.sql+4. Run this command to actually deploy the new "worker" that will process the survey being sent: npx wrangler deploy\ No newline at end of filediff --git a/survey/schema.sql b/survey/schema.sqlnew file mode 100644index 0000000..7c8c605--- /dev/null+++ b/survey/schema.sql@@ -0,0 +1,7 @@+CREATE TABLE IF NOT EXISTS responses (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ session_id TEXT NOT NULL,+ question TEXT NOT NULL,+ answer TEXT NOT NULL,+ submitted_at TEXT NOT NULL DEFAULT (datetime('now'))+);diff --git a/wrangler.jsonc b/wrangler.jsoncindex 209abcf..54a0250 100644--- a/wrangler.jsonc+++ b/wrangler.jsonc@@ -3,5 +3,12 @@"compatibility_date": "2025-08-24","assets": {"directory": "./dist"- }+ },+ "d1_databases": [+ {+ "binding": "DB",+ "database_name": "m2m-survey-responses",+ "database_id": "5805df06-efd6-4e30-93f3-40e6e0efd523"+ }+ ]}\ No newline at end of file