yarn install
Orakl Network L2 Config API requires to set the following environment variables.
DATABASE_URL
APP_PORT
You can copy them from .env.example
to .env
and fill the appropriate values.
cp .env.example .env
brew install postgresql@14
brew services start postgresql@14
createdb orakl-l2-api
#dropdb orakl-l2-api
npx prisma format
npx prisma migrate dev --name init
# 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
GET http:https://localhost:3000/api/v1
GET http:https://localhost:3000/docs