This repository contains the frontend of TradingLab.
It is written in Typescript using Vuejs as framework.
The code is hosted on Stormkit.
There are two main branches: production and staging.
This webapp follows a typical Vuejs structure.
There is a store divided into modules:
- User Module
- Metamask Module
- Contract Module
Every time a user connects Metamask, a new session is created.
Each session has its own id, which is stored three times:
- in the backend database
- in a frontend cookie
- in a frontend indexeddb
npm install
npm run serve
npm run build
jest
To run a specific test, for example only about Connect.vue:
jest Connect.vue
or even more specifically to a single test:
jest Connect.vue -t=loginMetamask
yarn-audit-fix
yarn audit
yarn upgrade
depcheck