2025SELab2-project-Dwengo/backend
Gerald Schmittinger 4dcd4671ca fix(backend): Workaround voor autoincrement-problemen bij SQLite
SQLite (die we voor de automatische tests gebruiken) ondersteunt geen autoincrement op kolommen die deel uitmaken van een composite primary key. Hiervoor heb ik een workaround geïmplementeerd.
2025-03-13 02:20:01 +01:00
..
_i18n style: fix linting issues met Prettier 2025-03-04 20:46:27 +00:00
src fix(backend): Workaround voor autoincrement-problemen bij SQLite 2025-03-13 02:20:01 +01:00
tests fix(backend): Workaround voor autoincrement-problemen bij SQLite 2025-03-13 02:20:01 +01:00
.env.development.example feature(backend): PORT-EnvVar wordt nu ook via envvar.ts ingelezen 2025-02-26 23:18:11 +01:00
.env.example chore(backend): Duidelijkere MikroORM logging 2025-03-02 13:59:38 +01:00
.env.test feat(backend): Repositories toegevoegd, databank unit-testbaar gemaakt. 2025-02-25 12:53:45 +01:00
config.ts fix: vertaling helper functie fall back constante 2025-03-01 22:20:06 +01:00
eslint.config.ts chore: Configureer linter (ESLint) 2025-02-20 13:59:52 +01:00
package.json test: student repository is getest 2025-03-07 11:48:52 +01:00
README.md docs: verbeterde versie unit tests 2025-03-10 15:36:43 +01:00
tsconfig.json style: fix linting issues met lint-action 2025-02-28 20:11:48 +00:00
vitest.config.ts style: fix linting issues met Prettier 2025-03-01 10:33:30 +00:00

dwengo-1-backend

Project setup

npm install

Setup the environment variables in a .env file in the root of the project. You can use the .env.example file as a template.

Development

npm run dev

Production

npm run build
npm run start

Tests

Voer volgend commando uit om de unit tests uit te voeren:

npm run test:unit