- Backend: Docker, go, golang-migrate, sqlc
- Frontend: pnpm
- Run
docker-compose up
in the /local-setup folder. This sets up a postgres database and Typesense. - Run migrations. See Migrations
- Open the go project at
backend/admin/
(or runmake admin-backend
) - Open
frontend
and runpnpm install
andpnpm start
In order to be able to run migrations install this: https://github.com/golang-migrate/migrate/tree/master/cmd/migrate
Create a new migration
migrate create -ext sql -seq -dir backend/db/migrations name
Run migrations
migrate -database "postgres://postgres:password@localhost:5432/postgres?sslmode=disable" -path backend/db/migrations` <up|down>
- Use mock-data (but make sure this PR is merged, otherwise build the branch from our repo)
- Run:
mock custom -f db/mock/mock_skeleton.yaml --database postgres -v --password password
- Note: This removes all constraints, mocks, then recreates the constraints. It currently fails to recreate all the constraints, so keep that in mind.
Many of the commands are in the Makefile. For example:
make migrate
make test-build
Follows the convention defined by ra-data-json.