This is a demo project which allows user to monitor his assets in BSC testnet network and see current exchange rates of various tokens.
Front end is using NextJs, vanilla-extract styling and zustand store. Backend is using NestJs with prisma as orm. Both use ethers library to communicate with blockchain.
First, run the backend server.
- Install npm modules with
npm install
- Edit .env file to change your database connection settings.
- Make sure postgresql server is running and credetials in .env are correct.
- Run prisma migrations
npx prisma migrate deploy
- Run the server with
npm run dev
cd back
npm install
vi .env
npx prisma migrate deploy
npm run dev
The nest server should run on localhost:3001 waiting for connections. Every 3 minutes update task should run fetchig 30 of ~400 known tokens from the free service.
The server is now ready for requests at
Running frondend is fairly straightforward.
cd front
npm install
npm run dev
That will run application on port 3000.
- http://localhost:3000/ - welcome page
- http://localhost:3000/assets - balance check page
- http://localhost:3000/rates - token exchange rates
In case of any questions or problems please contact me via Telegram at @xor_bx_bx