This project uses nvm to manage node versions.
https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
https://github.com/coreybutler/nvm-windows
First activate the node version via nvm
# Install node version specified in .nvmrc file
$ nvm install
# Use the version in the current terminal
$ nvm use
We will use pnpm as a package manager (instead of npm)
# Install pnpm
$ npm install -g pnpm
# Install all dependencies
$ pnpm i
Via docker compose we have postgres db and pgAdmin here:
http://localhost:8888
username: [email protected]
password: Aa123456
Start the docker compose
$ docker compose up -d
# Run the API
$ pnpm dev:api
# Run the data synchronizer
$ pnpm dev:synchronizer
in vscode, you have settings for a debugger of both
All existing DB migrations run on API startup, no need to run it manually
# Generate a new migration
$ pnpm db:generate
# Run existing migrations
$ pnpm db:migrate
# Starts a studio to view and edit data
$ pnpm db:studio