- Node 18.18.0 – https://nodejs.org/en/
- Docker Compose – https://docs.docker.com/compose/
corepack enable && yarn install
- Start Redis instance. By default, it will start on port
6379
oflocalhost
.
docker compose up -d redis
- Start the Safe Client Gateway
# development
yarn run start
# watch mode
yarn run start:dev
# production mode
yarn run start:prod
# unit tests
yarn run test
# e2e tests
yarn run test:e2e
# test coverage
yarn run test:cov
We use ESLint as a linter and Prettier as a code formatter.
You can run yarn run lint
to execute ESLint and yarn run format
to execute Prettier.
These checks can be automatically executed using Git hooks. If you wish to install the provided git hooks:
yarn install
yarn husky install