diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index da5872eb..8a6629f0 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -1,10 +1,9 @@ --- name: Bug rapport about: Maak een bug rapport om fouten te signaleren -title: "`error message` of beschrijving" +title: '`error message` of beschrijving' labels: bug assignees: '' - --- **Beschrijf de bug** @@ -12,6 +11,7 @@ Een duidelijke, beknopte beschrijving van de bug. **Reproductie** Stappen om het gedrag te reproduceren: + 1. Ga naar '...' 2. Klik op '....' 3. Scroll naar beneden tot '....' diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md index d06f41bc..b99513ab 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -1,10 +1,9 @@ --- name: Feature aanvragen about: Stel een feature voor -title: "Korte beschrijving of naam" +title: 'Korte beschrijving of naam' labels: enhancement assignees: '' - --- **Is your feature request related to a problem? Please describe.** diff --git a/backend/src/app.ts b/backend/src/app.ts index 6bc5d509..65dd8a7a 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -1,21 +1,22 @@ -import express, {Express, Request, Response} from 'express'; -import initORM from './orm' +import express, { Express, Response } from 'express'; +import initORM from './orm.js'; const app: Express = express(); const port: string | number = process.env.PORT || 3000; // TODO Replace with Express routes app.get('/', (_, res: Response) => { - res.json({ - message: 'Hello Dwengo!' - }); + res.json({ + message: 'Hello Dwengo!', + }); }); async function startServer() { - const orm = await initORM(); - app.listen(port, () => { - console.log(`Server is running at http://localhost:${port}`); - }); + await initORM(); + + app.listen(port, () => { + console.log(`Server is running at http://localhost:${port}`); + }); } startServer(); diff --git a/backend/src/entities/user.entity.ts b/backend/src/entities/user.entity.ts index 94b7bcad..f7b0c426 100644 --- a/backend/src/entities/user.entity.ts +++ b/backend/src/entities/user.entity.ts @@ -1,13 +1,13 @@ -import { Entity, OneToOne, PrimaryKey, Property } from '@mikro-orm/core' +import { Entity, PrimaryKey, Property } from '@mikro-orm/core'; @Entity() export class User { - @PrimaryKey({ type: 'number' }) - id!: number; + @PrimaryKey({ type: 'number' }) + id!: number; - @Property() - firstName: string = ''; + @Property() + firstName: string = ''; - @Property() - lastName: string = ''; -} \ No newline at end of file + @Property() + lastName: string = ''; +} diff --git a/backend/src/mikro-orm.config.ts b/backend/src/mikro-orm.config.ts index 3c126949..c4302a37 100644 --- a/backend/src/mikro-orm.config.ts +++ b/backend/src/mikro-orm.config.ts @@ -1,12 +1,12 @@ -import { Options } from '@mikro-orm/core' -import { PostgreSqlDriver } from '@mikro-orm/postgresql' +import { Options } from '@mikro-orm/core'; +import { PostgreSqlDriver } from '@mikro-orm/postgresql'; const config: Options = { - driver: PostgreSqlDriver, - dbName: 'dwengo', - entities: ['dist/**/*.entity.js'], - entitiesTs: ['src/**/*.entity.ts'], - debug: true + driver: PostgreSqlDriver, + dbName: 'dwengo', + entities: ['dist/**/*.entity.js'], + entitiesTs: ['src/**/*.entity.ts'], + debug: true, }; export default config; diff --git a/backend/src/orm.ts b/backend/src/orm.ts index 74bc570d..d9de328f 100644 --- a/backend/src/orm.ts +++ b/backend/src/orm.ts @@ -1,6 +1,6 @@ -import { MikroORM } from '@mikro-orm/core' -import config from './mikro-orm.config'; +import { MikroORM } from '@mikro-orm/core'; +import config from './mikro-orm.config.js'; export default async function initORM() { - await MikroORM.init(config); + await MikroORM.init(config); } diff --git a/frontend/e2e/vue.spec.ts b/frontend/e2e/vue.spec.ts index fc116a96..9471698e 100644 --- a/frontend/e2e/vue.spec.ts +++ b/frontend/e2e/vue.spec.ts @@ -3,6 +3,6 @@ import { test, expect } from '@playwright/test'; // See here how to get started: // https://playwright.dev/docs/intro test('visits the app root url', async ({ page }) => { - await page.goto('/'); - await expect(page.locator('h1')).toHaveText('You did it!'); -}) + await page.goto('/'); + await expect(page.locator('h1')).toHaveText('You did it!'); +}); diff --git a/frontend/index.html b/frontend/index.html index 9e5fc8f0..a678cb53 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,13 +1,13 @@ - + -
- - - -README.md
.
- README.md
.
+