diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml
index e398f0e1d..9a44f652b 100644
--- a/.github/workflows/publish_npm.yml
+++ b/.github/workflows/publish_npm.yml
@@ -21,7 +21,6 @@ jobs:
packages/create,
packages/dbos-cloud,
packages/dbos-compiler,
- packages/dbos-openapi,
packages/dbos-sqs,
packages/dbos-kafkajs,
]
diff --git a/package-lock.json b/package-lock.json
index 26ee8f535..6e7938b0f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -33,7 +33,6 @@
"knex": "3.1.0",
"koa": "^2.15.0",
"lodash": "4.17.21",
- "openapi-types": "12.1.3",
"pg": "8.11.3",
"pg-protocol": "^1.6.1",
"reflect-metadata": "^0.2.2",
@@ -2147,10 +2146,6 @@
"resolved": "packages/dbos-kafkajs",
"link": true
},
- "node_modules/@dbos-inc/dbos-openapi": {
- "resolved": "packages/dbos-openapi",
- "link": true
- },
"node_modules/@dbos-inc/dbos-random": {
"resolved": "packages/communicator-random",
"link": true
@@ -4664,10 +4659,6 @@
"pretty-format": "^29.0.0"
}
},
- "node_modules/@types/json-schema": {
- "version": "7.0.15",
- "license": "MIT"
- },
"node_modules/@types/jsonwebtoken": {
"version": "9.0.6",
"license": "MIT",
@@ -9207,6 +9198,7 @@
},
"node_modules/json5": {
"version": "2.2.3",
+ "dev": true,
"license": "MIT",
"bin": {
"json5": "lib/cli.js"
@@ -10050,6 +10042,7 @@
},
"node_modules/normalize-path": {
"version": "3.0.0",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
@@ -10173,10 +10166,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/openapi-types": {
- "version": "12.1.3",
- "license": "MIT"
- },
"node_modules/optionator": {
"version": "0.9.4",
"dev": true,
@@ -12110,52 +12099,6 @@
}
}
},
- "node_modules/ts-json-schema-generator": {
- "version": "1.5.1",
- "license": "MIT",
- "dependencies": {
- "@types/json-schema": "^7.0.15",
- "commander": "^12.0.0",
- "glob": "^8.0.3",
- "json5": "^2.2.3",
- "normalize-path": "^3.0.0",
- "safe-stable-stringify": "^2.4.3",
- "typescript": "~5.4.2"
- },
- "bin": {
- "ts-json-schema-generator": "bin/ts-json-schema-generator"
- },
- "engines": {
- "node": ">=10.0.0"
- }
- },
- "node_modules/ts-json-schema-generator/node_modules/glob": {
- "version": "8.1.0",
- "license": "ISC",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^5.0.1",
- "once": "^1.3.0"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/ts-json-schema-generator/node_modules/minimatch": {
- "version": "5.1.6",
- "license": "ISC",
- "dependencies": {
- "brace-expansion": "^2.0.1"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/ts-morph": {
"version": "22.0.0",
"license": "MIT",
@@ -12416,6 +12359,7 @@
},
"node_modules/typescript": {
"version": "5.4.5",
+ "dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
@@ -13497,6 +13441,7 @@
"packages/dbos-openapi": {
"name": "@dbos-inc/dbos-openapi",
"version": "0.0.0-placeholder",
+ "extraneous": true,
"license": "MIT",
"dependencies": {
"commander": "^11.0.0",
@@ -13517,21 +13462,6 @@
"ts-jest": "^29.1.1"
}
},
- "packages/dbos-openapi/node_modules/@types/supertest": {
- "version": "2.0.16",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/superagent": "*"
- }
- },
- "packages/dbos-openapi/node_modules/commander": {
- "version": "11.1.0",
- "license": "MIT",
- "engines": {
- "node": ">=16"
- }
- },
"packages/dbos-sqs": {
"name": "@dbos-inc/dbos-sqs",
"version": "0.0.0-placeholder",
diff --git a/package.json b/package.json
index bb0f42d74..de5e442b5 100644
--- a/package.json
+++ b/package.json
@@ -73,7 +73,6 @@
"knex": "3.1.0",
"koa": "^2.15.0",
"lodash": "4.17.21",
- "openapi-types": "12.1.3",
"pg": "8.11.3",
"pg-protocol": "^1.6.1",
"reflect-metadata": "^0.2.2",
diff --git a/packages/create/cli.ts b/packages/create/cli.ts
index 49460eb6a..a7d115546 100755
--- a/packages/create/cli.ts
+++ b/packages/create/cli.ts
@@ -26,9 +26,8 @@ program
throw new Error(`Unexpected arguments: ${command.args.join(',')}; Did you forget '--'?`);
}
let {appName, template} = options;
- if (appName || template) {
- appName = appName || 'dbos-hello-app';
- template = template || 'hello';
+ if (template) {
+ appName = template;
}
else {
const templates = listTemplates();
@@ -41,7 +40,7 @@ program
appName = await input(
{
message: 'What is the application/directory name to create?',
- default: template, // Default to the template name
+ default: appName || template,
validate: isValidApplicationName,
});
}
diff --git a/packages/create/templates/dbos-drizzle/README.md b/packages/create/templates/dbos-drizzle/README.md
new file mode 100644
index 000000000..fc915c891
--- /dev/null
+++ b/packages/create/templates/dbos-drizzle/README.md
@@ -0,0 +1,23 @@
+# DBOS Hello with Drizzle
+
+This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Drizzle](https://docs.dbos.dev/typescript/tutorials/orms/using-drizzle).
+
+## Getting Started
+
+Run these commands to build your app, set up its database, then launch it:
+
+```bash
+npm run build
+npx dbos migrate
+npm run start
+```
+
+To see that it's working, visit this URL in your browser: [`http://localhost:3000/`](http://localhost:3000/).
+
+Congratulations! You just launched a DBOS application.
+
+## Next Steps
+
+- To add more functionality to this application, modify `src/operations.ts`, then rebuild and restart it. Alternatively, `npm run dev` uses `nodemon` to automatically rebuild and restart the app when source files change, using instructions specified in `nodemon.json`.
+- For a detailed tutorial, check out the [programming guide](https://docs.dbos.dev/typescript/programming-guide).
+- To learn more about DBOS, take a look at [the documentation](https://docs.dbos.dev/) or [source code](https://github.com/dbos-inc/dbos-transact-ts).
diff --git a/packages/create/templates/hello-drizzle/dbos-config.yaml b/packages/create/templates/dbos-drizzle/dbos-config.yaml
similarity index 100%
rename from packages/create/templates/hello-drizzle/dbos-config.yaml
rename to packages/create/templates/dbos-drizzle/dbos-config.yaml
diff --git a/packages/create/templates/hello-drizzle/drizzle.config.ts b/packages/create/templates/dbos-drizzle/drizzle.config.ts
similarity index 100%
rename from packages/create/templates/hello-drizzle/drizzle.config.ts
rename to packages/create/templates/dbos-drizzle/drizzle.config.ts
diff --git a/packages/create/templates/hello-drizzle/drizzle/0000_hello.sql b/packages/create/templates/dbos-drizzle/drizzle/0000_hello.sql
similarity index 100%
rename from packages/create/templates/hello-drizzle/drizzle/0000_hello.sql
rename to packages/create/templates/dbos-drizzle/drizzle/0000_hello.sql
diff --git a/packages/create/templates/hello-drizzle/drizzle/meta/0000_snapshot.json b/packages/create/templates/dbos-drizzle/drizzle/meta/0000_snapshot.json
similarity index 100%
rename from packages/create/templates/hello-drizzle/drizzle/meta/0000_snapshot.json
rename to packages/create/templates/dbos-drizzle/drizzle/meta/0000_snapshot.json
diff --git a/packages/create/templates/hello-drizzle/drizzle/meta/_journal.json b/packages/create/templates/dbos-drizzle/drizzle/meta/_journal.json
similarity index 100%
rename from packages/create/templates/hello-drizzle/drizzle/meta/_journal.json
rename to packages/create/templates/dbos-drizzle/drizzle/meta/_journal.json
diff --git a/packages/create/templates/hello-contexts/eslint.config.js b/packages/create/templates/dbos-drizzle/eslint.config.js
similarity index 100%
rename from packages/create/templates/hello-contexts/eslint.config.js
rename to packages/create/templates/dbos-drizzle/eslint.config.js
diff --git a/packages/create/templates/hello-contexts/gitignore.template b/packages/create/templates/dbos-drizzle/gitignore.template
similarity index 100%
rename from packages/create/templates/hello-contexts/gitignore.template
rename to packages/create/templates/dbos-drizzle/gitignore.template
diff --git a/packages/create/templates/hello-contexts/jest.config.js b/packages/create/templates/dbos-drizzle/jest.config.js
similarity index 100%
rename from packages/create/templates/hello-contexts/jest.config.js
rename to packages/create/templates/dbos-drizzle/jest.config.js
diff --git a/packages/create/templates/dbos-drizzle/nodemon.json b/packages/create/templates/dbos-drizzle/nodemon.json
new file mode 100644
index 000000000..3c8e43aa3
--- /dev/null
+++ b/packages/create/templates/dbos-drizzle/nodemon.json
@@ -0,0 +1,7 @@
+{
+ "watch": ["src/"],
+ "ext": "ts,json",
+ "ignore": ["src/**/*.test.ts"],
+ "exec": "npm run build && npm run start"
+}
+
diff --git a/packages/create/templates/hello-drizzle/package.json b/packages/create/templates/dbos-drizzle/package.json
similarity index 95%
rename from packages/create/templates/hello-drizzle/package.json
rename to packages/create/templates/dbos-drizzle/package.json
index 8411858da..5a6d786f9 100644
--- a/packages/create/templates/hello-drizzle/package.json
+++ b/packages/create/templates/dbos-drizzle/package.json
@@ -1,5 +1,5 @@
{
- "name": "dbos-hello-drizzle",
+ "name": "dbos-drizzle",
"version": "0.0.1",
"scripts": {
"build": "tsc",
diff --git a/packages/create/templates/hello-drizzle/src/operations.test.ts b/packages/create/templates/dbos-drizzle/src/operations.test.ts
similarity index 100%
rename from packages/create/templates/hello-drizzle/src/operations.test.ts
rename to packages/create/templates/dbos-drizzle/src/operations.test.ts
diff --git a/packages/create/templates/hello-drizzle/src/operations.ts b/packages/create/templates/dbos-drizzle/src/operations.ts
similarity index 100%
rename from packages/create/templates/hello-drizzle/src/operations.ts
rename to packages/create/templates/dbos-drizzle/src/operations.ts
diff --git a/packages/create/templates/hello-drizzle/src/schema.ts b/packages/create/templates/dbos-drizzle/src/schema.ts
similarity index 100%
rename from packages/create/templates/hello-drizzle/src/schema.ts
rename to packages/create/templates/dbos-drizzle/src/schema.ts
diff --git a/packages/create/templates/hello-contexts/start_postgres_docker.js b/packages/create/templates/dbos-drizzle/start_postgres_docker.js
similarity index 100%
rename from packages/create/templates/hello-contexts/start_postgres_docker.js
rename to packages/create/templates/dbos-drizzle/start_postgres_docker.js
diff --git a/packages/create/templates/hello-contexts/tsconfig.json b/packages/create/templates/dbos-drizzle/tsconfig.json
similarity index 100%
rename from packages/create/templates/hello-contexts/tsconfig.json
rename to packages/create/templates/dbos-drizzle/tsconfig.json
diff --git a/packages/create/templates/dbos-knex/README.md b/packages/create/templates/dbos-knex/README.md
new file mode 100644
index 000000000..1b87cecc6
--- /dev/null
+++ b/packages/create/templates/dbos-knex/README.md
@@ -0,0 +1,23 @@
+# DBOS Hello
+
+This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Knex](https://docs.dbos.dev/typescript/tutorials/orms/using-knex).
+
+## Getting Started
+
+Run these commands to build your app, set up its database, then launch it:
+
+```bash
+npm run build
+npx dbos migrate
+npm run start
+```
+
+To see that it's working, visit this URL in your browser: [`http://localhost:3000/`](http://localhost:3000/).
+
+Congratulations! You just launched a DBOS application.
+
+## Next Steps
+
+- To add more functionality to this application, modify `src/main.ts`, then rebuild and restart it. Alternatively, `npm run dev` uses `nodemon` to automatically rebuild and restart the app when source files change, using instructions specified in `nodemon.json`.
+- For a detailed tutorial, check out the [programming guide](https://docs.dbos.dev/typescript/programming-guide).
+- To learn more about DBOS, take a look at [the documentation](https://docs.dbos.dev/) or [source code](https://github.com/dbos-inc/dbos-transact-ts).
diff --git a/packages/create/templates/hello-express/dbos-config.yaml b/packages/create/templates/dbos-knex/dbos-config.yaml
similarity index 100%
rename from packages/create/templates/hello-express/dbos-config.yaml
rename to packages/create/templates/dbos-knex/dbos-config.yaml
diff --git a/packages/create/templates/hello-drizzle/eslint.config.js b/packages/create/templates/dbos-knex/eslint.config.js
similarity index 100%
rename from packages/create/templates/hello-drizzle/eslint.config.js
rename to packages/create/templates/dbos-knex/eslint.config.js
diff --git a/packages/create/templates/hello-drizzle/gitignore.template b/packages/create/templates/dbos-knex/gitignore.template
similarity index 100%
rename from packages/create/templates/hello-drizzle/gitignore.template
rename to packages/create/templates/dbos-knex/gitignore.template
diff --git a/packages/create/templates/hello-drizzle/jest.config.js b/packages/create/templates/dbos-knex/jest.config.js
similarity index 100%
rename from packages/create/templates/hello-drizzle/jest.config.js
rename to packages/create/templates/dbos-knex/jest.config.js
diff --git a/packages/create/templates/hello-contexts/knexfile.js b/packages/create/templates/dbos-knex/knexfile.js
similarity index 100%
rename from packages/create/templates/hello-contexts/knexfile.js
rename to packages/create/templates/dbos-knex/knexfile.js
diff --git a/packages/create/templates/hello-contexts/migrations/20240212161006_create_dbos_hello_tables.js b/packages/create/templates/dbos-knex/migrations/20240212161006_create_dbos_hello_tables.js
similarity index 100%
rename from packages/create/templates/hello-contexts/migrations/20240212161006_create_dbos_hello_tables.js
rename to packages/create/templates/dbos-knex/migrations/20240212161006_create_dbos_hello_tables.js
diff --git a/packages/create/templates/dbos-knex/nodemon.json b/packages/create/templates/dbos-knex/nodemon.json
new file mode 100644
index 000000000..3c8e43aa3
--- /dev/null
+++ b/packages/create/templates/dbos-knex/nodemon.json
@@ -0,0 +1,7 @@
+{
+ "watch": ["src/"],
+ "ext": "ts,json",
+ "ignore": ["src/**/*.test.ts"],
+ "exec": "npm run build && npm run start"
+}
+
diff --git a/packages/create/templates/hello-contexts/package.json b/packages/create/templates/dbos-knex/package.json
similarity index 81%
rename from packages/create/templates/hello-contexts/package.json
rename to packages/create/templates/dbos-knex/package.json
index 95de0e9fd..3a4c52ed9 100644
--- a/packages/create/templates/hello-contexts/package.json
+++ b/packages/create/templates/dbos-knex/package.json
@@ -1,11 +1,10 @@
{
- "name": "dbos-hello",
+ "name": "dbos-knex",
"version": "0.0.1",
"scripts": {
"build": "tsc",
- "test": "npx dbos rollback && npx dbos migrate && jest",
+ "test": "npx dbos migrate && jest",
"lint": "eslint src",
- "lint-fix": "eslint --fix src",
"dev": "nodemon",
"start": "npx dbos start"
},
@@ -22,6 +21,7 @@
},
"dependencies": {
"@dbos-inc/dbos-sdk": "file:../../../..",
+ "express": "^4.21.2",
"knex": "3.1.0"
}
}
diff --git a/packages/create/templates/hello-express/src/main.test.ts b/packages/create/templates/dbos-knex/src/main.test.ts
similarity index 100%
rename from packages/create/templates/hello-express/src/main.test.ts
rename to packages/create/templates/dbos-knex/src/main.test.ts
diff --git a/packages/create/templates/dbos-knex/src/main.ts b/packages/create/templates/dbos-knex/src/main.ts
new file mode 100644
index 000000000..1c579176d
--- /dev/null
+++ b/packages/create/templates/dbos-knex/src/main.ts
@@ -0,0 +1,94 @@
+// Welcome to DBOS!
+
+// This is a sample "Hello" app built with DBOS and Knex.
+// It greets visitors and keeps track of how many times each visitor has been greeted.
+
+import express, { Request, Response } from 'express';
+import { DBOS } from "@dbos-inc/dbos-sdk";
+
+export interface dbos_hello {
+ name: string;
+ greet_count: number;
+}
+
+export class Hello {
+ // This transaction uses DBOS and Knex to perform database operations.
+ // It retrieves and increments the number of times a user has been greeted.
+ @DBOS.transaction()
+ static async helloTransaction(user: string) {
+ const query = "INSERT INTO dbos_hello (name, greet_count) VALUES (?, 1) ON CONFLICT (name) DO UPDATE SET greet_count = dbos_hello.greet_count + 1 RETURNING greet_count;";
+ const { rows } = (await DBOS.knexClient.raw(query, [user])) as { rows: dbos_hello[] };
+ const greet_count = rows[0].greet_count;
+ const greeting = `Hello, ${user}! You have been greeted ${greet_count} times.`;
+ return makeHTML(greeting);
+ }
+}
+
+// Let's create an HTML + CSS Readme for our app.
+function readme() {
+ return makeHTML(
+ `Visit the route /greeting/{name} to be greeted!
+ For example, visit /greeting/Mike
+ The counter increments with each page visit.`
+ );
+}
+
+function makeHTML(message: string) {
+ const page = `
+
+
+
+ DBOS Template App
+
+
+
+
Welcome to DBOS!
+
` + message + `
+
+ To learn how to run this app yourself, visit our
+ Quickstart.
+
+ Then, to learn how to build crashproof apps, continue to our
+ Programming Guide.
+
+
+ `;
+ return page;
+}
+
+// Let's create an HTTP server using Express.js
+export const app = express();
+app.use(express.json());
+
+// Serve the Readme from the root path
+app.get('/', (req: Request, res: Response) => {
+ res.send(readme());
+});
+
+// Serve the transaction from the /greeting/:name path
+app.get('/greeting/:name', (req: Request, res: Response) => {
+ const { name } = req.params;
+ Hello.helloTransaction(name)
+ .then(result => res.send(result))
+ .catch(error => {
+ console.error(error);
+ res.status(500).send('Internal Server Error');
+ });
+});
+
+// Finally, launch DBOS and start the server
+async function main() {
+ await DBOS.launch({expressApp: app});
+ const PORT = 3000;
+ const ENV = process.env.NODE_ENV || 'development';
+
+ app.listen(PORT, () => {
+ console.log(`🚀 Server is running on http://localhost:${PORT}`);
+ console.log(`🌟 Environment: ${ENV}`);
+ });
+}
+
+// Only start the server when this file is run directly from Node
+if (require.main === module) {
+ main().catch(console.log);
+}
\ No newline at end of file
diff --git a/packages/create/templates/hello-drizzle/start_postgres_docker.js b/packages/create/templates/dbos-knex/start_postgres_docker.js
similarity index 100%
rename from packages/create/templates/hello-drizzle/start_postgres_docker.js
rename to packages/create/templates/dbos-knex/start_postgres_docker.js
diff --git a/packages/create/templates/hello-drizzle/tsconfig.json b/packages/create/templates/dbos-knex/tsconfig.json
similarity index 100%
rename from packages/create/templates/hello-drizzle/tsconfig.json
rename to packages/create/templates/dbos-knex/tsconfig.json
diff --git a/packages/create/templates/dbos-prisma/README.md b/packages/create/templates/dbos-prisma/README.md
new file mode 100644
index 000000000..71e598d7f
--- /dev/null
+++ b/packages/create/templates/dbos-prisma/README.md
@@ -0,0 +1,23 @@
+# DBOS Hello with Prisma
+
+This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Prisma](https://docs.dbos.dev/typescript/tutorials/orms/using-prisma).
+
+## Getting Started
+
+Run these commands to build your app, set up its database, then launch it:
+
+```bash
+npm run build
+npx dbos migrate
+npm run start
+```
+
+To see that it's working, visit this URL in your browser: [`http://localhost:3000/`](http://localhost:3000/).
+
+Congratulations! You just launched a DBOS application.
+
+## Next Steps
+
+- To add more functionality to this application, modify `src/operations.ts`, then rebuild and restart it. Alternatively, `npm run dev` uses `nodemon` to automatically rebuild and restart the app when source files change, using instructions specified in `nodemon.json`.
+- For a detailed tutorial, check out the [programming guide](https://docs.dbos.dev/typescript/programming-guide).
+- To learn more about DBOS, take a look at [the documentation](https://docs.dbos.dev/) or [source code](https://github.com/dbos-inc/dbos-transact-ts).
diff --git a/packages/create/templates/hello-prisma/dbos-config.yaml b/packages/create/templates/dbos-prisma/dbos-config.yaml
similarity index 100%
rename from packages/create/templates/hello-prisma/dbos-config.yaml
rename to packages/create/templates/dbos-prisma/dbos-config.yaml
diff --git a/packages/create/templates/hello-express/eslint.config.js b/packages/create/templates/dbos-prisma/eslint.config.js
similarity index 100%
rename from packages/create/templates/hello-express/eslint.config.js
rename to packages/create/templates/dbos-prisma/eslint.config.js
diff --git a/packages/create/templates/hello-prisma/generate_env.js b/packages/create/templates/dbos-prisma/generate_env.js
similarity index 100%
rename from packages/create/templates/hello-prisma/generate_env.js
rename to packages/create/templates/dbos-prisma/generate_env.js
diff --git a/packages/create/templates/hello-prisma/gitignore.template b/packages/create/templates/dbos-prisma/gitignore.template
similarity index 100%
rename from packages/create/templates/hello-prisma/gitignore.template
rename to packages/create/templates/dbos-prisma/gitignore.template
diff --git a/packages/create/templates/hello-express/jest.config.js b/packages/create/templates/dbos-prisma/jest.config.js
similarity index 100%
rename from packages/create/templates/hello-express/jest.config.js
rename to packages/create/templates/dbos-prisma/jest.config.js
diff --git a/packages/create/templates/hello-prisma/nodemon.json b/packages/create/templates/dbos-prisma/nodemon.json
similarity index 61%
rename from packages/create/templates/hello-prisma/nodemon.json
rename to packages/create/templates/dbos-prisma/nodemon.json
index 502fc99fb..fb8f44814 100644
--- a/packages/create/templates/hello-prisma/nodemon.json
+++ b/packages/create/templates/dbos-prisma/nodemon.json
@@ -2,7 +2,7 @@
"watch": ["src/", "prisma/"],
"ext": "ts,json",
"ignore": ["src/**/*.test.ts"],
- "exec": "npm run build && npx dbos migrate && npm run start"
+ "exec": "npm run build && npm run start"
}
\ No newline at end of file
diff --git a/packages/create/templates/hello-prisma/package.json b/packages/create/templates/dbos-prisma/package.json
similarity index 95%
rename from packages/create/templates/hello-prisma/package.json
rename to packages/create/templates/dbos-prisma/package.json
index 554b7e372..e277999a8 100644
--- a/packages/create/templates/hello-prisma/package.json
+++ b/packages/create/templates/dbos-prisma/package.json
@@ -1,5 +1,5 @@
{
- "name": "dbos-hello-prisma",
+ "name": "dbos-prisma",
"version": "0.0.1",
"scripts": {
"build": "node generate_env.js && npx prisma generate && tsc",
diff --git a/packages/create/templates/hello-prisma/prisma/migrations/20240604184654_init/migration.sql b/packages/create/templates/dbos-prisma/prisma/migrations/20240604184654_init/migration.sql
similarity index 100%
rename from packages/create/templates/hello-prisma/prisma/migrations/20240604184654_init/migration.sql
rename to packages/create/templates/dbos-prisma/prisma/migrations/20240604184654_init/migration.sql
diff --git a/packages/create/templates/hello-prisma/prisma/migrations/migration_lock.toml b/packages/create/templates/dbos-prisma/prisma/migrations/migration_lock.toml
similarity index 100%
rename from packages/create/templates/hello-prisma/prisma/migrations/migration_lock.toml
rename to packages/create/templates/dbos-prisma/prisma/migrations/migration_lock.toml
diff --git a/packages/create/templates/hello-prisma/prisma/schema.prisma b/packages/create/templates/dbos-prisma/prisma/schema.prisma
similarity index 100%
rename from packages/create/templates/hello-prisma/prisma/schema.prisma
rename to packages/create/templates/dbos-prisma/prisma/schema.prisma
diff --git a/packages/create/templates/hello-prisma/src/operations.test.ts b/packages/create/templates/dbos-prisma/src/operations.test.ts
similarity index 100%
rename from packages/create/templates/hello-prisma/src/operations.test.ts
rename to packages/create/templates/dbos-prisma/src/operations.test.ts
diff --git a/packages/create/templates/hello-prisma/src/operations.ts b/packages/create/templates/dbos-prisma/src/operations.ts
similarity index 100%
rename from packages/create/templates/hello-prisma/src/operations.ts
rename to packages/create/templates/dbos-prisma/src/operations.ts
diff --git a/packages/create/templates/hello-express/start_postgres_docker.js b/packages/create/templates/dbos-prisma/start_postgres_docker.js
old mode 100755
new mode 100644
similarity index 100%
rename from packages/create/templates/hello-express/start_postgres_docker.js
rename to packages/create/templates/dbos-prisma/start_postgres_docker.js
diff --git a/packages/create/templates/hello-prisma/tsconfig.json b/packages/create/templates/dbos-prisma/tsconfig.json
similarity index 100%
rename from packages/create/templates/hello-prisma/tsconfig.json
rename to packages/create/templates/dbos-prisma/tsconfig.json
diff --git a/packages/create/templates/dbos-typeorm/README.md b/packages/create/templates/dbos-typeorm/README.md
new file mode 100644
index 000000000..a8a186c3e
--- /dev/null
+++ b/packages/create/templates/dbos-typeorm/README.md
@@ -0,0 +1,23 @@
+# DBOS Hello with TypeORM
+
+This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [TypeORM](https://docs.dbos.dev/typescript/tutorials/orms/using-typeorm).
+
+## Getting Started
+
+Run these commands to build your app, set up its database, then launch it:
+
+```bash
+npm run build
+npx dbos migrate
+npm run start
+```
+
+To see that it's working, visit this URL in your browser: [`http://localhost:3000/`](http://localhost:3000/).
+
+Congratulations! You just launched a DBOS application.
+
+## Next Steps
+
+- To add more functionality to this application, modify `src/main.ts`, then rebuild and restart it. Alternatively, `npm run dev` uses `nodemon` to automatically rebuild and restart the app when source files change, using instructions specified in `nodemon.json`.
+- For a detailed tutorial, check out the [programming guide](https://docs.dbos.dev/typescript/programming-guide).
+- To learn more about DBOS, take a look at [the documentation](https://docs.dbos.dev/) or [source code](https://github.com/dbos-inc/dbos-transact-ts).
diff --git a/packages/create/templates/hello-typeorm/datasource.ts b/packages/create/templates/dbos-typeorm/datasource.ts
similarity index 100%
rename from packages/create/templates/hello-typeorm/datasource.ts
rename to packages/create/templates/dbos-typeorm/datasource.ts
diff --git a/packages/create/templates/hello-typeorm/dbos-config.yaml b/packages/create/templates/dbos-typeorm/dbos-config.yaml
similarity index 100%
rename from packages/create/templates/hello-typeorm/dbos-config.yaml
rename to packages/create/templates/dbos-typeorm/dbos-config.yaml
diff --git a/packages/create/templates/hello-typeorm/entities/DBOSHello.ts b/packages/create/templates/dbos-typeorm/entities/DBOSHello.ts
similarity index 100%
rename from packages/create/templates/hello-typeorm/entities/DBOSHello.ts
rename to packages/create/templates/dbos-typeorm/entities/DBOSHello.ts
diff --git a/packages/create/templates/hello-prisma/eslint.config.js b/packages/create/templates/dbos-typeorm/eslint.config.js
similarity index 100%
rename from packages/create/templates/hello-prisma/eslint.config.js
rename to packages/create/templates/dbos-typeorm/eslint.config.js
diff --git a/packages/create/templates/hello-express/gitignore.template b/packages/create/templates/dbos-typeorm/gitignore.template
similarity index 100%
rename from packages/create/templates/hello-express/gitignore.template
rename to packages/create/templates/dbos-typeorm/gitignore.template
diff --git a/packages/create/templates/hello-prisma/jest.config.js b/packages/create/templates/dbos-typeorm/jest.config.js
similarity index 100%
rename from packages/create/templates/hello-prisma/jest.config.js
rename to packages/create/templates/dbos-typeorm/jest.config.js
diff --git a/packages/create/templates/hello-typeorm/migrations/1714934318136-DBOSHello.ts b/packages/create/templates/dbos-typeorm/migrations/1714934318136-DBOSHello.ts
similarity index 100%
rename from packages/create/templates/hello-typeorm/migrations/1714934318136-DBOSHello.ts
rename to packages/create/templates/dbos-typeorm/migrations/1714934318136-DBOSHello.ts
diff --git a/packages/create/templates/dbos-typeorm/nodemon.json b/packages/create/templates/dbos-typeorm/nodemon.json
new file mode 100644
index 000000000..5a2898243
--- /dev/null
+++ b/packages/create/templates/dbos-typeorm/nodemon.json
@@ -0,0 +1,8 @@
+{
+ "watch": ["src/", "entities/"],
+ "ext": "ts,json",
+ "ignore": ["src/**/*.test.ts"],
+ "exec": "npm run build && npm run start"
+ }
+
+
\ No newline at end of file
diff --git a/packages/create/templates/hello-typeorm/package.json b/packages/create/templates/dbos-typeorm/package.json
similarity index 95%
rename from packages/create/templates/hello-typeorm/package.json
rename to packages/create/templates/dbos-typeorm/package.json
index 0ee01a55d..22f2d9973 100644
--- a/packages/create/templates/hello-typeorm/package.json
+++ b/packages/create/templates/dbos-typeorm/package.json
@@ -1,5 +1,5 @@
{
- "name": "dbos-hello-typeorm",
+ "name": "dbos-typeorm",
"version": "0.0.1",
"scripts": {
"build": "tsc",
diff --git a/packages/create/templates/hello-typeorm/src/operations.test.ts b/packages/create/templates/dbos-typeorm/src/operations.test.ts
similarity index 100%
rename from packages/create/templates/hello-typeorm/src/operations.test.ts
rename to packages/create/templates/dbos-typeorm/src/operations.test.ts
diff --git a/packages/create/templates/hello-typeorm/src/operations.ts b/packages/create/templates/dbos-typeorm/src/operations.ts
similarity index 100%
rename from packages/create/templates/hello-typeorm/src/operations.ts
rename to packages/create/templates/dbos-typeorm/src/operations.ts
diff --git a/packages/create/templates/hello-nextjs/start_postgres_docker.js b/packages/create/templates/dbos-typeorm/start_postgres_docker.js
old mode 100755
new mode 100644
similarity index 100%
rename from packages/create/templates/hello-nextjs/start_postgres_docker.js
rename to packages/create/templates/dbos-typeorm/start_postgres_docker.js
diff --git a/packages/create/templates/hello-typeorm/tsconfig.json b/packages/create/templates/dbos-typeorm/tsconfig.json
similarity index 100%
rename from packages/create/templates/hello-typeorm/tsconfig.json
rename to packages/create/templates/dbos-typeorm/tsconfig.json
diff --git a/packages/create/templates/hello-contexts/.vscode/extensions.json b/packages/create/templates/hello-contexts/.vscode/extensions.json
deleted file mode 100644
index e4e81f058..000000000
--- a/packages/create/templates/hello-contexts/.vscode/extensions.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- // Automatically recommend the DBOS extension to VSCode users.
- // Documentation on extensions.json: http://go.microsoft.com/fwlink/?LinkId=827846
- "recommendations": [
- "dbos-inc.dbos-ttdbg"
- ]
-}
\ No newline at end of file
diff --git a/packages/create/templates/hello-contexts/.vscode/launch.json b/packages/create/templates/hello-contexts/.vscode/launch.json
deleted file mode 100644
index 3977fca42..000000000
--- a/packages/create/templates/hello-contexts/.vscode/launch.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- // Automatically configure the VSCode debugger for DBOS projects.
- // Documentation on launch.json: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "type": "node-terminal",
- "request": "launch",
- "name": "Local Debug",
- "command": "npx dbos start",
- "preLaunchTask": "npm: build",
- },
- {
- "type": "node-terminal",
- "request": "launch",
- "name": "Time Travel Debug",
- "command": "npx dbos debug -x ${command:dbos-ttdbg.get-proxy-url} -u ${command:dbos-ttdbg.pick-workflow-id}",
- "preLaunchTask": "npm: build"
- }
- ]
- }
\ No newline at end of file
diff --git a/packages/create/templates/hello-contexts/.vscode/tasks.json b/packages/create/templates/hello-contexts/.vscode/tasks.json
deleted file mode 100644
index 793379743..000000000
--- a/packages/create/templates/hello-contexts/.vscode/tasks.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- // Configure the build command for DBOS projects using VSCode.
- // Documentation on tasks.json: https://code.visualstudio.com/docs/editor/tasks
- "version": "2.0.0",
- "tasks": [
- {
- "label": "npm: build",
- "type": "npm",
- "script": "build",
- "group": {
- "kind": "build",
- "isDefault": true
- },
- "problemMatcher": [
- "$tsc"
- ]
- }
- ]
- }
\ No newline at end of file
diff --git a/packages/create/templates/hello-contexts/README.md b/packages/create/templates/hello-contexts/README.md
deleted file mode 100644
index ddd98a2a3..000000000
--- a/packages/create/templates/hello-contexts/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# DBOS Hello
-
-*NOTE:* This is an older version of the DBOS `hello` app that uses a previous API based on passing [DBOS contexts](https://docs.dbos.dev/typescript/reference/transactapi/oldapi/contexts) around as function arguments.
-
-This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Knex](https://docs.dbos.dev/typescript/tutorials/orms/using-knex).
-
-## Getting Started
-
-Before you can launch your app, you need a database.
-DBOS works with any Postgres database, but to make things easier, we've provided a script that starts a Docker Postgres container and creates a database.
-Run:
-
-```bash
-node start_postgres_docker.js
-```
-
-If successful, the script should print `Database started successfully!`.
-
-Next, you can build and run the app in one step under `nodemon`:
-
-```bash
-npm run dev
-```
-
-To see that it's working, visit this URL in your browser: [`http://localhost:3000/greeting/dbos`](http://localhost:3000/greeting/dbos).
-You should get this message: `Hello, dbos! You have been greeted 1 times.`
-Each time you refresh the page, the counter should go up by one!
-
-Congratulations! You just launched a DBOS application.
-
-## Production build
-
-In production, instead of using `nodemon`, the following separate steps should be used to build, run database setup, and start the app.
-
-```bash
-npm run build
-```
-
-Then, run a schema migration to create some tables:
-
-```bash
-npx dbos migrate
-```
-
-If successful, the migration should print `Migration successful!`.
-
-Finally, run the app:
-
-```bash
-npx dbos start
-```
-
-## The application
-
-The core of the application resides in `src/operations.ts`. It declares an "hello world" DBOS workflow served at `/greetings/:user`. To add more functionality, modify `src/operations.ts`. If you used `npm run dev`, it will automatically rebuild and restart.
-
-## Running in DBOS Cloud
-
-To deploy this app to DBOS Cloud, first install the DBOS Cloud CLIÂ (example with [npm](https://www.npmjs.com/)):
-
-```shell
-npm i -g @dbos-inc/dbos-cloud
-```
-
-Then, run this command to deploy your app:
-
-```shell
-dbos-cloud app deploy
-```
-
-functionality to this application, modify `src/operations.ts`. If you used `npm run dev`, it will automatically rebuild and restart.
-
-## Next Steps
-
-- For a detailed tutorial, check out our [programming quickstart](https://docs.dbos.dev/getting-started/quickstart-programming).
-- To learn more about DBOS, take a look at [our documentation](https://docs.dbos.dev/) or our [source code](https://github.com/dbos-inc/dbos-transact).
diff --git a/packages/create/templates/hello-contexts/dbos-config.yaml b/packages/create/templates/hello-contexts/dbos-config.yaml
deleted file mode 100644
index 3d4d04da6..000000000
--- a/packages/create/templates/hello-contexts/dbos-config.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable auto-completion and validation for this file in VSCode, install the RedHat YAML extension
-# https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
-
-# yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-transact/main/dbos-config.schema.json
-
-language: node
-database:
- hostname: localhost
- port: 5432
- username: postgres
- password: ${PGPASSWORD}
- connectionTimeoutMillis: 3000
- app_db_client: knex
- migrate:
- - npx knex migrate:latest
- rollback:
- - npx knex migrate:rollback
-runtimeConfig:
- entrypoints:
- - dist/operations.js
\ No newline at end of file
diff --git a/packages/create/templates/hello-contexts/nodemon.json b/packages/create/templates/hello-contexts/nodemon.json
deleted file mode 100644
index 43fb9eab5..000000000
--- a/packages/create/templates/hello-contexts/nodemon.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "watch": ["src/","migrations/"],
- "ext": "ts,json",
- "ignore": ["src/**/*.test.ts"],
- "exec": "npm run build && npx dbos migrate && npm run start"
-}
-
diff --git a/packages/create/templates/hello-contexts/src/operations.test.ts b/packages/create/templates/hello-contexts/src/operations.test.ts
deleted file mode 100644
index 36823f92b..000000000
--- a/packages/create/templates/hello-contexts/src/operations.test.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { TestingRuntime, createTestingRuntime } from "@dbos-inc/dbos-sdk";
-import { Hello, dbos_hello } from "./operations";
-import request from "supertest";
-
-describe("operations-test", () => {
- let testRuntime: TestingRuntime;
-
- beforeAll(async () => {
- testRuntime = await createTestingRuntime();
- });
-
- afterAll(async () => {
- await testRuntime.destroy();
- });
-
- /**
- * Test the transaction.
- */
- test("test-transaction", async () => {
- const res = await testRuntime.invoke(Hello).helloTransaction("dbos");
- expect(res).toMatch("Hello, dbos! You have been greeted");
-
- // Check the greet count.
- const rows = await testRuntime.queryUserDB("SELECT * FROM dbos_hello WHERE name=$1", "dbos");
- expect(rows[0].greet_count).toBe(1);
- });
-
- /**
- * Test the HTTP endpoint.
- */
- test("test-endpoint", async () => {
- const res = await request(testRuntime.getHandlersCallback()).get(
- "/greeting/dbos"
- );
- expect(res.statusCode).toBe(200);
- expect(res.text).toMatch("Hello, dbos! You have been greeted");
- });
-});
diff --git a/packages/create/templates/hello-contexts/src/operations.ts b/packages/create/templates/hello-contexts/src/operations.ts
deleted file mode 100644
index 5abad379a..000000000
--- a/packages/create/templates/hello-contexts/src/operations.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-// Welcome to DBOS!
-
-// This is a sample "Hello" app built with DBOS.
-// It greets visitors and keeps track of how many times each visitor has been greeted.
-// To run this app, visit our Quickstart: https://docs.dbos.dev/getting-started/quickstart
-
-import { HandlerContext, TransactionContext, Transaction, GetApi, ArgSource, ArgSources } from "@dbos-inc/dbos-sdk";
-import { Knex } from "knex";
-
-// The schema of the database table used in this example.
-export interface dbos_hello {
- name: string;
- greet_count: number;
-}
-
-export class Hello {
- // Serve this function from HTTP GET requests at the /greeting endpoint with 'user' as a path parameter
- // The @Transaction() decorator ensures that this function runs as a database transaction.
- @GetApi("/greeting/:user")
- @Transaction() // Run this function as a database transaction
- static async helloTransaction(ctxt: TransactionContext, @ArgSource(ArgSources.URL) user: string) {
- // Retrieve and increment the number of times this user has been greeted.
- const query = "INSERT INTO dbos_hello (name, greet_count) VALUES (?, 1) ON CONFLICT (name) DO UPDATE SET greet_count = dbos_hello.greet_count + 1 RETURNING greet_count;";
- const { rows } = await ctxt.client.raw(query, [user]) as { rows: dbos_hello[] };
- const greet_count = rows[0].greet_count;
- const greeting = `Hello, ${user}! You have been greeted ${greet_count} times.`;
- return Hello.makeHTML(greeting);
- }
-
- // Let's declare helper functions to serve static HTML
-
- // Serve a quick readme for the app at the / endpoint
- @GetApi('/')
- static async readme(_ctxt: HandlerContext) {
- const message = Hello.makeHTML(
- `Visit the route /greeting/{name} to be greeted!
- For example, visit /greeting/Mike
- The counter increments with each page visit.`
- );
- return Promise.resolve(message);
- }
-
- // A helper function to create HTML pages with some styling
- static makeHTML(message: string) {
- const page = `
-
-
-
- DBOS Template App
-
-
-
-
Welcome to DBOS!
-
` + message + `
-
- To learn how to run this app yourself, visit our
- Quickstart.
-
- Then, to learn how to build crashproof apps, continue to our
- Programming Guide.
-
-
- `;
- return page;
- }
-}
diff --git a/packages/create/templates/hello-drizzle/.vscode/extensions.json b/packages/create/templates/hello-drizzle/.vscode/extensions.json
deleted file mode 100644
index e4e81f058..000000000
--- a/packages/create/templates/hello-drizzle/.vscode/extensions.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- // Automatically recommend the DBOS extension to VSCode users.
- // Documentation on extensions.json: http://go.microsoft.com/fwlink/?LinkId=827846
- "recommendations": [
- "dbos-inc.dbos-ttdbg"
- ]
-}
\ No newline at end of file
diff --git a/packages/create/templates/hello-drizzle/.vscode/launch.json b/packages/create/templates/hello-drizzle/.vscode/launch.json
deleted file mode 100644
index 3977fca42..000000000
--- a/packages/create/templates/hello-drizzle/.vscode/launch.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- // Automatically configure the VSCode debugger for DBOS projects.
- // Documentation on launch.json: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "type": "node-terminal",
- "request": "launch",
- "name": "Local Debug",
- "command": "npx dbos start",
- "preLaunchTask": "npm: build",
- },
- {
- "type": "node-terminal",
- "request": "launch",
- "name": "Time Travel Debug",
- "command": "npx dbos debug -x ${command:dbos-ttdbg.get-proxy-url} -u ${command:dbos-ttdbg.pick-workflow-id}",
- "preLaunchTask": "npm: build"
- }
- ]
- }
\ No newline at end of file
diff --git a/packages/create/templates/hello-drizzle/.vscode/tasks.json b/packages/create/templates/hello-drizzle/.vscode/tasks.json
deleted file mode 100644
index 793379743..000000000
--- a/packages/create/templates/hello-drizzle/.vscode/tasks.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- // Configure the build command for DBOS projects using VSCode.
- // Documentation on tasks.json: https://code.visualstudio.com/docs/editor/tasks
- "version": "2.0.0",
- "tasks": [
- {
- "label": "npm: build",
- "type": "npm",
- "script": "build",
- "group": {
- "kind": "build",
- "isDefault": true
- },
- "problemMatcher": [
- "$tsc"
- ]
- }
- ]
- }
\ No newline at end of file
diff --git a/packages/create/templates/hello-drizzle/README.md b/packages/create/templates/hello-drizzle/README.md
deleted file mode 100644
index 04c3203d0..000000000
--- a/packages/create/templates/hello-drizzle/README.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# DBOS Hello with Drizzle
-
-This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Drizzle](https://docs.dbos.dev/typescript/tutorials/orms/using-drizzle).
-
-## Getting Started
-
-Before you can launch your app, you need a database.
-DBOS works with any Postgres database, but to make things easier, we've provided a script that starts a Docker Postgres container and creates a database.
-Run:
-
-```bash
-node start_postgres_docker.js
-```
-
-If successful, the script should print `Database started successfully!`.
-
-Next, build the app:
-
-```bash
-npm run build
-```
-
-Then, run a schema migration to create some tables:
-
-```bash
-npx dbos migrate
-```
-
-If successful, the migration should print `Migration successful!`.
-
-Finally, run the app:
-
-```bash
-npx dbos start
-```
-
-To see that it's working, visit this URL in your browser: [`http://localhost:3000/greeting/dbos`](http://localhost:3000/greeting/dbos).
-You should get this message: `Hello, dbos! You have been greeted 1 times.`
-Each time you refresh the page, the counter should go up by one!
-
-Congratulations! You just launched a DBOS application.
-
-## Next Steps
-
-- To add more functionality to this application, modify `src/operations.ts`, then rebuild and restart it. Alternatively, `npm run dev` uses `nodemon` to automatically rebuild and restart the app when source files change, using instructions specified in `nodemon.json`.
-- For a detailed tutorial, check out our [programming quickstart](https://docs.dbos.dev/typescript/programming-guide).
-- To learn how to deploy your application to DBOS Cloud, visit our [cloud quickstart](https://docs.dbos.dev/quickstart)
-- To learn more about DBOS, take a look at [our documentation](https://docs.dbos.dev/) or our [source code](https://github.com/dbos-inc).
diff --git a/packages/create/templates/hello-drizzle/nodemon.json b/packages/create/templates/hello-drizzle/nodemon.json
deleted file mode 100644
index 43fb9eab5..000000000
--- a/packages/create/templates/hello-drizzle/nodemon.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "watch": ["src/","migrations/"],
- "ext": "ts,json",
- "ignore": ["src/**/*.test.ts"],
- "exec": "npm run build && npx dbos migrate && npm run start"
-}
-
diff --git a/packages/create/templates/hello-express/README.md b/packages/create/templates/hello-express/README.md
deleted file mode 100644
index 49716be48..000000000
--- a/packages/create/templates/hello-express/README.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# DBOS Hello
-
-This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create`, using [Express.js](https://expressjs.com/) and [Knex](https://docs.dbos.dev/typescript/tutorials/orms/using-knex) to interact with postgres.
-
-## Getting Started
-
-Before you can launch your app, you need a database.
-DBOS works with any Postgres database, but to make things easier, we've provided a script that starts a Docker Postgres container and creates a database.
-Run:
-
-```bash
-node start_postgres_docker.js
-```
-
-If successful, the script should print `Database started successfully!`.
-
-Next, you can build and run the app in one step under `nodemon`:
-
-```bash
-npm run dev
-```
-
-To see that it's working, visit this URL in your browser: [`http://localhost:3000/greeting/dbos`](http://localhost:3000/greeting/dbos).
-You should get this message: `Hello, dbos! You have been greeted 1 times.`
-Each time you refresh the page, the counter should go up by one!
-
-Congratulations! You just launched a DBOS application.
-
-## Production build
-
-In production, instead of using `nodemon`, the following separate steps should be used to build, run database setup, and start the app.
-
-```bash
-npm run build
-```
-
-Then, run a schema migration to create some tables:
-
-```bash
-npx dbos migrate
-```
-
-If successful, the migration should print `Migration successful!`.
-
-Finally, run the app:
-
-```bash
-npx dbos start
-```
-
-## The application
-
-In `src/main.ts`, the Express app object is created and configured to serve an "hello world" DBOS workflow on `/greetings/:user`. This file also hosts the code of said DBOS workflow: an `Hello` class with a single `helloTransaction` method.
-
-
-Then the `main()` function declares the code to start a DBOS instance and an Express application. When you pass the Express app object as parameter to `DBOS.launch()`, DBOS will wrap all routes with an [OpenTelemetry](https://opentelemetry.io/) tracing middleware and tie HTTP traces to DBOS workflow traces.
-
-To add more functionality to this application, modify `src/main.ts`. If you used `npm run dev`, it will automatically rebuild and restart.
-
-## Running in DBOS Cloud
-
-To deploy this app to DBOS Cloud, first install the DBOS Cloud CLIÂ (example with [npm](https://www.npmjs.com/)):
-
-```shell
-npm i -g @dbos-inc/dbos-cloud
-```
-
-Then, run this command to deploy your app:
-
-```shell
-dbos-cloud app deploy
-```
-
-## Next Steps
-
-- For a detailed tutorial, check out our [programming quickstart](https://docs.dbos.dev/typescript/programming-guide).
-- To learn more about DBOS, take a look at [our documentation](https://docs.dbos.dev/) or our [source code](https://github.com/dbos-inc).
diff --git a/packages/create/templates/hello-express/knexfile.js b/packages/create/templates/hello-express/knexfile.js
deleted file mode 100644
index c315c00ad..000000000
--- a/packages/create/templates/hello-express/knexfile.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const { parseConfigFile } = require('@dbos-inc/dbos-sdk');
-
-const [dbosConfig, ] = parseConfigFile();
-
-const config = {
- client: 'pg',
- connection: {
- host: dbosConfig.poolConfig.host,
- port: dbosConfig.poolConfig.port,
- user: dbosConfig.poolConfig.user,
- password: dbosConfig.poolConfig.password,
- database: dbosConfig.poolConfig.database,
- ssl: dbosConfig.poolConfig.ssl,
- },
- migrations: {
- directory: './migrations'
- }
-};
-
-module.exports = config;
diff --git a/packages/create/templates/hello-express/migrations/20240212161006_create_dbos_hello_tables.js b/packages/create/templates/hello-express/migrations/20240212161006_create_dbos_hello_tables.js
deleted file mode 100644
index 2a1117be2..000000000
--- a/packages/create/templates/hello-express/migrations/20240212161006_create_dbos_hello_tables.js
+++ /dev/null
@@ -1,18 +0,0 @@
-const { Knex } = require("knex");
-
-exports.up = async function(knex) {
- await knex.schema.createTable('dbos_hello', table => {
- table.text('name').primary();
- table.integer('greet_count').defaultTo(0);
- });
-
- return knex.schema.createTable('dbos_greetings', table => {
- table.text('greeting_name');
- table.text('greeting_note_content');
- });
-};
-
-exports.down = async function(knex) {
- await knex.schema.dropTable('dbos_greetings');
- return knex.schema.dropTable('dbos_hello');
-};
diff --git a/packages/create/templates/hello-express/nodemon.json b/packages/create/templates/hello-express/nodemon.json
deleted file mode 100644
index a5a7faa72..000000000
--- a/packages/create/templates/hello-express/nodemon.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "watch": ["src/","migrations/"],
- "ext": "ts,json",
- "ignore": ["src/**/*.test.ts"],
- "exec": "npm run build && npx dbos migrate && node dist/main.js"
-}
-
diff --git a/packages/create/templates/hello-express/package.json b/packages/create/templates/hello-express/package.json
deleted file mode 100644
index 9384ad389..000000000
--- a/packages/create/templates/hello-express/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "dbos-hello-express",
- "version": "0.0.1",
- "scripts": {
- "build": "tsc",
- "test": "npx dbos rollback && npx dbos migrate && jest",
- "dev": "nodemon",
- "start": "npx dbos start"
- },
- "devDependencies": {
- "@types/jest": "^29.5.12",
- "@types/supertest": "^2.0.16",
- "jest": "^29.7.0",
- "nodemon": "^3.1.0",
- "supertest": "^7.0.0",
- "ts-jest": "^29.1.2",
- "typescript": "^5.4.5"
- },
- "dependencies": {
- "@dbos-inc/dbos-sdk": "file:../../../..",
- "express": "^4.21.1",
- "knex": "3.1.0"
- }
-}
diff --git a/packages/create/templates/hello-express/src/main.ts b/packages/create/templates/hello-express/src/main.ts
deleted file mode 100644
index 7872a881f..000000000
--- a/packages/create/templates/hello-express/src/main.ts
+++ /dev/null
@@ -1,99 +0,0 @@
-// Welcome to DBOS!
-
-// This is a sample "Hello" app built with DBOS, Express.js, and Knex.
-// It greets visitors and keeps track of how many times each visitor has been greeted.
-
-// First let's import express and DBOS
-import express from "express";
-import { DBOS } from "@dbos-inc/dbos-sdk";
-
-// Then, let's declare a type representing the "dbos_hello" database table
-export interface dbos_hello {
- name: string;
- greet_count: number;
-}
-
-// Now let's define a class with some static functions.
-// DBOS uses TypeScript decorators to automatically make your functions reliable, so they need to be static.
-export class Hello {
- // This function greets a user and increments the greet count in the database.
- // The @DBOS.transaction() decorator ensures that this function runs as a database transaction.
- @DBOS.transaction()
- static async helloTransaction(user: string) {
- const query = "INSERT INTO dbos_hello (name, greet_count) VALUES (?, 1) ON CONFLICT (name) DO UPDATE SET greet_count = dbos_hello.greet_count + 1 RETURNING greet_count;";
- const { rows } = (await DBOS.knexClient.raw(query, [user])) as { rows: dbos_hello[] };
- const greet_count = rows[0].greet_count;
- const greeting = `Hello, ${user}! You have been greeted ${greet_count} times.`;
- return Hello.makeHTML(greeting);
- }
-
- // Finally, we will declare helper functions to serve static HTML to user.s
-
- static async readme() {
- const message = Hello.makeHTML(
- `Visit the route /greeting/{name} to be greeted!
- For example, visit /greeting/Mike
- The counter increments with each page visit.`
- );
- return Promise.resolve(message);
- }
-
- // A helper function to create HTML pages with some styling
- static makeHTML(message: string) {
- const page = `
-
-
-
- DBOS Template App
-
-
-
-
Welcome to DBOS!
-
` + message + `
-
- To learn how to run this app yourself, visit our
- Quickstart.
-
- Then, to learn how to build crashproof apps, continue to our
- Programming Guide.
-
-
- `;
- return page;
- }
-}
-
-// Now, let's create an Express app and define some routes.
-export const app = express();
-// Parse JSON payloads and make it available to req.body
-app.use(express.json());
-
-// We'll serve the README at the root of the app
-app.get("/", async (_, res) => {
- res.send(await Hello.readme());
-});
-
-// Serve this function from HTTP GET requests at the /greeting endpoint with 'user' as a path parameter
-// The handler will in turn call a reliable DBOS operation (helloTransaction) to greet the user
-app.get("/greeting/:user", async (req, res) => {
- const { user } = req.params;
- res.send(await Hello.helloTransaction(user));
-});
-
-// Finally, let's start the server
-async function main() {
- await DBOS.launch({expressApp: app});
-
- const PORT = DBOS.runtimeConfig?.port ?? 3000;
- const ENV = process.env.NODE_ENV || 'development';
-
- app.listen(PORT, () => {
- console.log(`🚀 Server is running on http://localhost:${PORT}`);
- console.log(`🌟 Environment: ${ENV}`);
- });
-}
-
-// Only start the server when this file is run directly from Node
-if (require.main === module) {
- main().catch(console.log);
-}
diff --git a/packages/create/templates/hello-express/tsconfig.json b/packages/create/templates/hello-express/tsconfig.json
deleted file mode 100644
index 5488d6185..000000000
--- a/packages/create/templates/hello-express/tsconfig.json
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Visit https://aka.ms/tsconfig to read more about this file */
-{
- "compilerOptions": {
- "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
- "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
- "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
- "module": "Node16", /* Specify what module code is generated. */
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
- "declarationMap": true, /* Create sourcemaps for d.ts files. */
- "sourceMap": true, /* Create source map files for emitted JavaScript files. */
- "outDir": "./dist", /* Specify an output folder for all emitted files. */
- "newLine": "lf", /* Set the newline character for emitting files. */
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
- "strict": true, /* Enable all strict type-checking options. */
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
- },
- "include": [ /* Specifies an array of filenames or patterns to include in the program. */
- "src"
- ],
- "exclude": [
- "**/*.test.ts",
- "dist"
- ]
-}
diff --git a/packages/create/templates/hello-nextjs/.gitignore b/packages/create/templates/hello-nextjs/.gitignore
deleted file mode 100644
index 5ef6a5207..000000000
--- a/packages/create/templates/hello-nextjs/.gitignore
+++ /dev/null
@@ -1,41 +0,0 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
-
-# dependencies
-/node_modules
-/.pnp
-.pnp.*
-.yarn/*
-!.yarn/patches
-!.yarn/plugins
-!.yarn/releases
-!.yarn/versions
-
-# testing
-/coverage
-
-# next.js
-/.next/
-/out/
-
-# production
-/build
-
-# misc
-.DS_Store
-*.pem
-
-# debug
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-.pnpm-debug.log*
-
-# env files (can opt-in for committing if needed)
-.env*
-
-# vercel
-.vercel
-
-# typescript
-*.tsbuildinfo
-next-env.d.ts
diff --git a/packages/create/templates/hello-nextjs/README.md b/packages/create/templates/hello-nextjs/README.md
deleted file mode 100644
index 836031e62..000000000
--- a/packages/create/templates/hello-nextjs/README.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# DBOS Background Job
-
-This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create`, using [Express.js](https://expressjs.com/) and [Knex](https://docs.dbos.dev/typescript/tutorials/orms/using-knex) to interact with postgres.
-
-## Getting Started
-
-Before you can launch your app, you need a database.
-DBOS works with any Postgres database, but to make things easier, we've provided a script that starts a Docker Postgres container and creates a database.
-Run:
-
-```bash
-node start_postgres_docker.js
-```
-
-If successful, the script should print `Database started successfully!`.
-
-```
-
-## Production build
-
-In production, instead of using `nodemon`, the following separate steps should be used to build, run database setup, and start the app.
-
-```bash
-npm run build
-```
-
-Then, run a schema migration to create some tables:
-
-```bash
-npx dbos migrate
-```
-
-If successful, the migration should print `Migration successful!`.
-
-Finally, run the app:
-
-```bash
-npm run start
-```
-
-To see that it's working, visit this URL in your browser: [`http://localhost:3000/`](http://localhost:3000/).
-
-Click on the "Start Background Job" button.
-
-You should this message: `Your background task has completed step 0 of 9.`
-As the background job completes steps, the step counter should go up by one!
-
-Click on "Crash the application" button.
-
-The step counter stops increasing.
-On the command line, you will see that the application has stopped.
-Start the application again.
-```bash
-npm run start
-```
-In the browser, you will see that the execution of steps resumes where it left off and eventually completes.
-
-Congratulations! You just run a DBOS application.
-
-## The application
-
-- In `src/action/dbosWorkflow.tsx`, the DBOS workflow is created. When called, it increments a counter in the database and returns a greeting.
-
-- The code below in the same file, launches the dbos runtime. This is required for DBOS runtime to start. Do not remove the code
-```
-if (process.env.NEXT_PHASE !== "phase-production-build") {
- await DBOS.launch();
-}
-```
-- The workflow for the background job is called by the called the GET method in app/tasks/route.ts.
-
-- The GET is called by the component in src/components/BackGroundTask.tsx. It calls the route /tasks.
-
-- The component is called from the main UI page.tsx.
-
-- This is how the DBOS workflow is wired to the NextJs application.
-
-
- DBOS will wrap all routes with an [OpenTelemetry](https://opentelemetry.io/) tracing middleware and tie HTTP traces to DBOS workflow traces.
-
-To add more functionality to this application, modify `src/operations.ts`. If you used `npm run dev`, it will automatically rebuild and restart.
-
-## Running in DBOS Cloud
-
-To deploy this app to DBOS Cloud, first install the DBOS Cloud CLI (example with [npm](https://www.npmjs.com/)):
-
-```shell
-npm i -g @dbos-inc/dbos-cloud
-```
-
-Then, run this command to deploy your app:
-
-```shell
-dbos-cloud app deploy
-```
-
-## Next Steps
-
-- For a detailed tutorial, check out our [programming quickstart](https://docs.dbos.dev/typescript/programming-guide).
-- To learn more about DBOS, take a look at [our documentation](https://docs.dbos.dev/) or our [source code](https://github.com/dbos-inc).
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/dbos-config.yaml b/packages/create/templates/hello-nextjs/dbos-config.yaml
deleted file mode 100644
index 2e2640530..000000000
--- a/packages/create/templates/hello-nextjs/dbos-config.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-# To enable auto-completion and validation for this file in VSCode, install the RedHat YAML extension
-# https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml
-
-# yaml-language-server: $schema=https://raw.githubusercontent.com/dbos-inc/dbos-transact/main/dbos-config.schema.json
-
-language: node
-database:
- hostname: localhost
- port: 5432
- username: postgres
- password: ${PGPASSWORD}
- connectionTimeoutMillis: 3000
- app_db_client: knex
- migrate:
- - npx knex migrate:latest
-runtimeConfig:
- start:
- - "npm run start"
diff --git a/packages/create/templates/hello-nextjs/eslint.config.mjs b/packages/create/templates/hello-nextjs/eslint.config.mjs
deleted file mode 100644
index c85fb67c4..000000000
--- a/packages/create/templates/hello-nextjs/eslint.config.mjs
+++ /dev/null
@@ -1,16 +0,0 @@
-import { dirname } from "path";
-import { fileURLToPath } from "url";
-import { FlatCompat } from "@eslint/eslintrc";
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = dirname(__filename);
-
-const compat = new FlatCompat({
- baseDirectory: __dirname,
-});
-
-const eslintConfig = [
- ...compat.extends("next/core-web-vitals", "next/typescript"),
-];
-
-export default eslintConfig;
diff --git a/packages/create/templates/hello-nextjs/gitignore.template b/packages/create/templates/hello-nextjs/gitignore.template
deleted file mode 100644
index 5ef6a5207..000000000
--- a/packages/create/templates/hello-nextjs/gitignore.template
+++ /dev/null
@@ -1,41 +0,0 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
-
-# dependencies
-/node_modules
-/.pnp
-.pnp.*
-.yarn/*
-!.yarn/patches
-!.yarn/plugins
-!.yarn/releases
-!.yarn/versions
-
-# testing
-/coverage
-
-# next.js
-/.next/
-/out/
-
-# production
-/build
-
-# misc
-.DS_Store
-*.pem
-
-# debug
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-.pnpm-debug.log*
-
-# env files (can opt-in for committing if needed)
-.env*
-
-# vercel
-.vercel
-
-# typescript
-*.tsbuildinfo
-next-env.d.ts
diff --git a/packages/create/templates/hello-nextjs/knexfile.js b/packages/create/templates/hello-nextjs/knexfile.js
deleted file mode 100644
index c315c00ad..000000000
--- a/packages/create/templates/hello-nextjs/knexfile.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const { parseConfigFile } = require('@dbos-inc/dbos-sdk');
-
-const [dbosConfig, ] = parseConfigFile();
-
-const config = {
- client: 'pg',
- connection: {
- host: dbosConfig.poolConfig.host,
- port: dbosConfig.poolConfig.port,
- user: dbosConfig.poolConfig.user,
- password: dbosConfig.poolConfig.password,
- database: dbosConfig.poolConfig.database,
- ssl: dbosConfig.poolConfig.ssl,
- },
- migrations: {
- directory: './migrations'
- }
-};
-
-module.exports = config;
diff --git a/packages/create/templates/hello-nextjs/migrations/20240212161006_create_dbos_hello_tables.js b/packages/create/templates/hello-nextjs/migrations/20240212161006_create_dbos_hello_tables.js
deleted file mode 100644
index 2a1117be2..000000000
--- a/packages/create/templates/hello-nextjs/migrations/20240212161006_create_dbos_hello_tables.js
+++ /dev/null
@@ -1,18 +0,0 @@
-const { Knex } = require("knex");
-
-exports.up = async function(knex) {
- await knex.schema.createTable('dbos_hello', table => {
- table.text('name').primary();
- table.integer('greet_count').defaultTo(0);
- });
-
- return knex.schema.createTable('dbos_greetings', table => {
- table.text('greeting_name');
- table.text('greeting_note_content');
- });
-};
-
-exports.down = async function(knex) {
- await knex.schema.dropTable('dbos_greetings');
- return knex.schema.dropTable('dbos_hello');
-};
diff --git a/packages/create/templates/hello-nextjs/next.config.ts b/packages/create/templates/hello-nextjs/next.config.ts
deleted file mode 100644
index f356255f5..000000000
--- a/packages/create/templates/hello-nextjs/next.config.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import type { NextConfig } from "next";
-
-const nextConfig: NextConfig = {
- /* config options here */
- webpack: (config) => {
- // Treat @dbos-inc/dbos-sdk as an external package for client builds
- config.externals = [
- ...config.externals,
- {
- "@dbos-inc/dbos-sdk": "commonjs @dbos-inc/dbos-sdk",
- },
- ];
-
- return config;
- },
-};
-
-export default nextConfig;
diff --git a/packages/create/templates/hello-nextjs/package.json b/packages/create/templates/hello-nextjs/package.json
deleted file mode 100644
index 732d9b0ff..000000000
--- a/packages/create/templates/hello-nextjs/package.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "hello-nextjs",
- "version": "0.1.0",
- "private": true,
- "scripts": {
- "dev": "next dev",
- "build": "next build",
- "start": "next start",
- "lint": "next lint"
- },
- "dependencies": {
- "@dbos-inc/dbos-sdk": "^1.31.17-preview",
- "next": "15.0.3",
- "react": "19.0.0-rc-66855b96-20241106",
- "react-dom": "19.0.0-rc-66855b96-20241106",
- "typeorm": "^0.3.20",
- "webpack": "^5.96.1"
- },
- "devDependencies": {
- "@babel/cli": "^7.25.9",
- "@babel/core": "^7.26.0",
- "@babel/preset-env": "^7.26.0",
- "@types/node": "^20",
- "@types/react": "^18",
- "@types/react-dom": "^18",
- "eslint": "^8",
- "eslint-config-next": "15.0.3",
- "postcss": "^8",
- "tailwindcss": "^3.4.1",
- "typescript": "^5"
- }
-}
diff --git a/packages/create/templates/hello-nextjs/postcss.config.mjs b/packages/create/templates/hello-nextjs/postcss.config.mjs
deleted file mode 100644
index 1a69fd2a4..000000000
--- a/packages/create/templates/hello-nextjs/postcss.config.mjs
+++ /dev/null
@@ -1,8 +0,0 @@
-/** @type {import('postcss-load-config').Config} */
-const config = {
- plugins: {
- tailwindcss: {},
- },
-};
-
-export default config;
diff --git a/packages/create/templates/hello-nextjs/public/file.svg b/packages/create/templates/hello-nextjs/public/file.svg
deleted file mode 100644
index 004145cdd..000000000
--- a/packages/create/templates/hello-nextjs/public/file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/public/globe.svg b/packages/create/templates/hello-nextjs/public/globe.svg
deleted file mode 100644
index 567f17b0d..000000000
--- a/packages/create/templates/hello-nextjs/public/globe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/public/next.svg b/packages/create/templates/hello-nextjs/public/next.svg
deleted file mode 100644
index 5174b28c5..000000000
--- a/packages/create/templates/hello-nextjs/public/next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/public/vercel.svg b/packages/create/templates/hello-nextjs/public/vercel.svg
deleted file mode 100644
index 770539603..000000000
--- a/packages/create/templates/hello-nextjs/public/vercel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/public/window.svg b/packages/create/templates/hello-nextjs/public/window.svg
deleted file mode 100644
index b2b2a44f6..000000000
--- a/packages/create/templates/hello-nextjs/public/window.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/src/actions/dbosWorkflow.ts b/packages/create/templates/hello-nextjs/src/actions/dbosWorkflow.ts
deleted file mode 100644
index 875f3150b..000000000
--- a/packages/create/templates/hello-nextjs/src/actions/dbosWorkflow.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-"use server";
-
-import { DBOS } from "@dbos-inc/dbos-sdk";
-import { dbosWorkflowClass } from "../dbos/operations";
-
-console.log("Hello from dbosWorkflow.ts");
-
-
-export async function dbosBackgroundTask(workflowID: string) {
- DBOS.logger.info("Hello from DBOS!");
- return DBOS.startWorkflow(dbosWorkflowClass, {workflowID: workflowID}).backgroundTask(10);
-}
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/src/actions/hello.ts b/packages/create/templates/hello-nextjs/src/actions/hello.ts
deleted file mode 100644
index bf90da0b7..000000000
--- a/packages/create/templates/hello-nextjs/src/actions/hello.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-"use server";
-
-import { DBOS } from "@dbos-inc/dbos-sdk";
-import { helloWorkflowClass } from "../dbos/operations";
-
-
-console.log("Hello from hello.ts");
-
-// The exported function is the entry point for the workflow
-// The function is exported and not the class because Next does not support exporting classes
-export async function helloWorkflow(userName: string) {
- DBOS.logger.info("Hello from DBOS!");
- return await helloWorkflowClass.helloDBOS(userName);
-}
-
diff --git a/packages/create/templates/hello-nextjs/src/app/crash/route.ts b/packages/create/templates/hello-nextjs/src/app/crash/route.ts
deleted file mode 100644
index b12664074..000000000
--- a/packages/create/templates/hello-nextjs/src/app/crash/route.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-
-export async function GET(request: Request) {
-
- console.log("Received request Crashing the app");
-
- process.exit(1);
-
-}
\ No newline at end of file
diff --git a/packages/create/templates/hello-nextjs/src/app/favicon.ico b/packages/create/templates/hello-nextjs/src/app/favicon.ico
deleted file mode 100644
index 718d6fea4..000000000
Binary files a/packages/create/templates/hello-nextjs/src/app/favicon.ico and /dev/null differ
diff --git a/packages/create/templates/hello-nextjs/src/app/globals.css b/packages/create/templates/hello-nextjs/src/app/globals.css
deleted file mode 100644
index 6b717ad34..000000000
--- a/packages/create/templates/hello-nextjs/src/app/globals.css
+++ /dev/null
@@ -1,21 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-:root {
- --background: #ffffff;
- --foreground: #171717;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --background: #0a0a0a;
- --foreground: #ededed;
- }
-}
-
-body {
- color: var(--foreground);
- background: var(--background);
- font-family: Arial, Helvetica, sans-serif;
-}
diff --git a/packages/create/templates/hello-nextjs/src/app/greetings/route.ts b/packages/create/templates/hello-nextjs/src/app/greetings/route.ts
deleted file mode 100644
index 7a074b6d9..000000000
--- a/packages/create/templates/hello-nextjs/src/app/greetings/route.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { NextResponse } from "next/server";
-import { helloWorkflow } from "../../actions/hello";
-import { DBOS } from "@dbos-inc/dbos-sdk";
-
-export async function POST(request: Request) {
- const body = await request.json();
- const { userName } = body;
- DBOS.logger.info(`Received request with name: ${userName}`);
- const response = await helloWorkflow(userName);
- return NextResponse.json(response);
-}
diff --git a/packages/create/templates/hello-nextjs/src/app/layout.tsx b/packages/create/templates/hello-nextjs/src/app/layout.tsx
deleted file mode 100644
index a9188fbcb..000000000
--- a/packages/create/templates/hello-nextjs/src/app/layout.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import type { Metadata } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
-import "./globals.css";
-
-const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
-});
-
-const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
-});
-
-export const metadata: Metadata = {
- title: "Create Next App with DBOS",
- description: "Generated by DBOS",
-};
-
-export default function RootLayout({
- children,
-}: Readonly<{
- children: React.ReactNode;
-}>) {
- return (
-
-
- {children}
-
-
- );
-}
diff --git a/packages/create/templates/hello-nextjs/src/app/page.tsx b/packages/create/templates/hello-nextjs/src/app/page.tsx
deleted file mode 100644
index c7a21c822..000000000
--- a/packages/create/templates/hello-nextjs/src/app/page.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import Image from "next/image";
-import BackGroundTask from "@/components/client/BackGroundTask";
-import CallDBOSWorkflow from "@/components/client/callDBOSWorkflow";
-
-export default function Home() {
- return (
-
-
-
-
-
Welcome to DBOS!
-
-
-
- DBOS helps you build applications that are resilient to any failure—no matter how many times you crash this app, your background task will always recover from its last completed step in about ten seconds.
-