Web dashboard for TOM, developed with Vue 3 in Vite, frontend with naive-ui.
- Documentation: --
- Version info
- Use yarn for package management.
- Run
yarn installon the root directory to install dependencies - Create the required credential files inside
src/credentialfolder- Create a file
src/credential/google_maps_credential.jsonwith Google Maps credentials such as{"map_api_key": "KEY"}- Current Google Maps APIs used:
- Create a file
- Start the TOM-Server-Python to establish a socket and database connection
- Modify the config to the add IP address (i.e.,
WEBSOCKET_HOST_IP) of the python-server. Use127.0.0.1when both python-server and web-client are running on the same machine. - Run
yarn run devto start the application
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
yarn run buildRun Unit Tests with Vitest
yarn run test:unitLint with ESLint
yarn run lint