- See Frontend first.
- Use docker for development. See install docker desktop to install it.
- If using WSL 2 backend on Windows, enable the WSL 2 feature first.
Install dependencies locally:
pnpm i
Then, start the database:
docker-compose up
Then, start the development server:
pnpm run start:dev
Open http://localhost:4000/graphql to check the graphql playground.
Use typeorm-fixtures for seeding.
- add new fixture to
./db/fixtures
- run
pnpm fixtures
- Open http://localhost:8080 and login with account here.
- Add New Server
- General
- Name: time-tracing-api or whatever you like.
- Connection
- Host name/address: postgres
- Port: 5432
- Maintenance database: develop
- Username: postgres
- Password: password
- Save
- Servers - time-tracing-api - Database - develop - Schemas - public - Tables.