- Endpoint to fetch all account balances based on the current set of transactions
{ "account_12345": { "balance": 12345 }, "account_54321": { "balance": -12345 } }
Here is my version of the Heard Take Home Assessment.
- React
- Typescript
- Ant Design
- Fetch
- NestJS
- Prisma
- class-validator
- Sqlite
- Open a terminal and switch to the
backend
directory - Run
yarn
ornpm install
to fetch dependencies - Create a
.env
file inbackend
directory and addDATABASE_URL="file:./dev.sqlite"
to the file - Run
yarn prisma migrate dev
ornpx prisma migrate dev
to create the database, migrate to latest schema version and seed with sample data - Run
yarn run dev
ornpm run dev
to start the backend service
- Open a terminal and switch to the
frontend
directory - Run
yarn
ornpm install
to fetch dependencies - Run
yarn run dev
ornpm run dev
to start the frontend service - Open your browser to localhost:5173 or whatever URL is listed in the terminal (in case of a port clash)