Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { createBuilder } from './.modules/aspire.js';

const builder = await createBuilder();

const postgres = await builder.addPostgres('postgres');
await postgres.withDbGate({ containerName: 'postgres-dbgate' });
await postgres.withAdminer({ containerName: 'postgres-adminer' });

const database = await postgres.addDatabase('appdb');
await database.withFlywayMigration('flyway-migration', './migrations');
await database.withFlywayRepair('flyway-repair', './migrations');

const resolvedPostgres = await postgres;
const _primaryEndpoint = await resolvedPostgres.primaryEndpoint.get();
const _host = await resolvedPostgres.host.get();
const _port = await resolvedPostgres.port.get();
const _serverUri = await resolvedPostgres.uriExpression.get();
const _serverJdbcConnectionString = await resolvedPostgres.jdbcConnectionString.get();

const resolvedDatabase = await database;
const _databaseName = await resolvedDatabase.databaseName.get();
const _databaseUri = await resolvedDatabase.uriExpression.get();
const _databaseJdbcConnectionString = await resolvedDatabase.jdbcConnectionString.get();

await builder.build().run();
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"appHost": {
"path": "apphost.ts",
"language": "typescript/nodejs"
},
"profiles": {
"https": {
"applicationUrl": "https://localhost:29750;http://localhost:28931",
"environmentVariables": {
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:10975",
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:13319"
}
}
},
"packages": {
"CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';

export default defineConfig({
files: ['apphost.ts'],
extends: [tseslint.configs.base],
languageOptions: {
parserOptions: {
projectService: true,
},
},
rules: {
'@typescript-eslint/no-floating-promises': ['error', { checkThenables: true }],
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
create table if not exists validation_runs
(
id serial primary key,
created_at timestamptz not null default now()
);
Loading
Loading