Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.33 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.33 KB

Time-tracing Backend

Dev Environment

Develop

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.

Seeding

Use typeorm-fixtures for seeding.

  • add new fixture to ./db/fixtures
  • run pnpm fixtures

Usage of pgAdmin

  • 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.