The repo supports 2 different environments:
- development environment, the backend interface is 'http://localhost:3001', need run loacl backend environemnt.
- production environment, the backend interface is 'http://asteroids.dev.mediasia.cn'
To store fonts and icons
To store common componets and logic components
- customModal: common modal component
- header: header component
- map: the left of main page of right
- menu: menu component for tab switch
- minners: to store all logic components of main page
- svgIcon: common svg icon component
Definie the request interceptor, response interceptor and request methods(get, post, delete, put)
Pages component
To store router
Define Websocket serve, used socket.io client, 'https://socket.io/'
Define interface
Public method class
To launch the project in development mode, use yarn or npm to install node modules, run script:
npm install
npm run start
To launch the project in prodcution mode, use yarn or npm to install, run script:
npm install
npm run start:prod
Build code for production mode, run script:
npm run build:prod:
To run eslint locally and fix automatically all minor issues:
npm run lint:fix