- Install docker desktop.
- Install Postgres.
- Install protobuf:
brew install protobuf
. - Rename
.env.example
to.env
. - Run
yarn && yarn install
. - Start the local aleo database inside of a docker container:
yarn local-db-up
. - Apply database migrations:
yarn migrate
. - Run
yarn start:dev
.
Tests:
Run yarn test
.
curl --location --request POST 'localhost:3000' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "getHeight"
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"height": "120087"
}
}