diff --git a/apps/form-service/.gitignore b/apps/rest-api/.gitignore similarity index 100% rename from apps/form-service/.gitignore rename to apps/rest-api/.gitignore diff --git a/apps/form-service/package.json b/apps/rest-api/package.json similarity index 94% rename from apps/form-service/package.json rename to apps/rest-api/package.json index 62d842ab..3a497905 100644 --- a/apps/form-service/package.json +++ b/apps/rest-api/package.json @@ -1,5 +1,5 @@ { - "name": "@atj/form-service", + "name": "@atj/form-rest-api", "private": true, "description": "backend service for handling submitted forms", "main": "src/index.ts", diff --git a/apps/form-service/src/index.ts b/apps/rest-api/src/index.ts similarity index 100% rename from apps/form-service/src/index.ts rename to apps/rest-api/src/index.ts diff --git a/apps/form-service/tsconfig.json b/apps/rest-api/tsconfig.json similarity index 100% rename from apps/form-service/tsconfig.json rename to apps/rest-api/tsconfig.json diff --git a/infra/src/app-stack.ts b/infra/src/app-stack.ts index 85a52d33..0fa95fc8 100644 --- a/infra/src/app-stack.ts +++ b/infra/src/app-stack.ts @@ -4,7 +4,7 @@ import { AwsProvider } from '@cdktf/provider-aws/lib/provider'; import { withBackend } from './backend'; import { Docassemble } from './docassemble'; -import { FormService } from './form-service'; +import { FormService } from './rest-api'; export const registerAppStack = (stackPrefix: string) => { const app = new App(); @@ -22,6 +22,6 @@ class AppStack extends TerraformStack { }); new Docassemble(this, `${id}-docassemble`); - new FormService(this, `${id}-form-service`); + new FormService(this, `${id}-rest-api`); } } diff --git a/infra/src/form-service.ts b/infra/src/rest-api.ts similarity index 97% rename from infra/src/form-service.ts rename to infra/src/rest-api.ts index 3ec4c154..466242f0 100644 --- a/infra/src/form-service.ts +++ b/infra/src/rest-api.ts @@ -11,7 +11,7 @@ export class FormService extends Construct { super(scope, id); const config = { - path: '../../apps/form-service/dist', + path: '../../apps/rest-api/dist', handler: 'index.lambdaHandler', runtime: 'nodejs18.x', }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 48adf374..a741ee9b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,7 +58,7 @@ importers: specifier: ^11.1.0 version: 11.1.0 - apps/form-service: + apps/rest-api: dependencies: '@atj/interviews': specifier: workspace:*