- Install Protobuf Compiler (protoc)
- Install Redis
npm i
- Copy
.env.example
to.env
and fill out appropiate values - Run
npx prisma generate
to create/update the prisma client class used in the code git submodule update --init --recursive
to update submodulesnpm run build:protos:(mac/win)
to generate TypeScript from .protoredis-server
in a new terminal (use WSL on Windows) to start Redis servernpm run dev
- If connecting to new db run
npx prisma migrate deploy
to apply migration files - If changes are made to
schema.prisma
- Run
npx prisma migrate dev --name "{...}"
to create and apply new migration file - Run
npx prisma generate
to create/update the prisma client class used in the code
- Run
redis-server
in a new terminal (use WSL on Windows) to start Redis serverredis-cli
to connect to Redis instanceshutdown
to stop instanceflushdb
to clean DB
npm run test
npm run test:cov
to show