This was time limited task which was done for a job interview, it was for a frontend part but I did the full stack requirement. It was done under 8 hours for both. Because time limitations not all pats are polished, probably will do it at some later time.
-
Sign in with Metamask wallet using web3 library’s personal sign method
-
Trading view
Once a user is authenticated, they should be able to:
- deposit funds
- submit orders
- see their deposited funds and placed orders.
-
Deposit view
- User is shown a form where they can input an amount and select one of these tokens (ETH, USDT, DVF)
- The deposit is submitted to the API (see below)
- User can see their deposited balances (token / amount)
- Responsive part
- Typescript
- Optimize data fetching part
- Tests
- And general code polishing
- Node.js 12.22.0 or later
- MacOS, Windows (including WSL), and Linux are supported
- be sure to have Node.js instaled
https://nodejs.org/en/
- start the
cmd
of you choosing and navigate to the project folder - type
yarn install
ornpm install
- Run
npm run dev
oryarn dev
to start the development server onhttp://localhost:3000
- Run
npm run build
oryarn run build
to build the production and themnpm run start
oryarn run start
to start a production server onhttp://localhost:3000
- Visit
http://localhost:3000
to view your application