See NOTES.md
- Create a file named
.env
in the root of the project dir - Copy-paste the contents of the
.env.example
file into the.env
file - Replace the
<KEY>
value with the Alchemy secret URL key for your node instance. - If you want to use a testnet instead of a mainnet (eg. Goerli, Sepolia, Mumbai), make sure to actually change the whole URL for WS and HTTP URLs. There is no need to create new env vars for the testnets - you just have to update the URL values.
For production-like env run:
npm run start:prod
And that's it.
This command will prepare docker containers and run everything needed:
- compile the typescript files
- build the API server image
- start its container
- start the DB container
- run the DB migrations to create the needed tables
The transactions sync will start the moment the server is up and running.
$ npm install
$ npm run build
$ docker-compose up -d db
$ npm start
This will start the app locally in watch mode (changes to the code will automatically trigger recompilation and restart of the app).