This folder contains the JavaScript-based webclient for NavigaTUM.
For getting started, there are some system dependencies which you will need. Please follow the system dependencies docs before trying to run this part of our project.
Zed comes with a profile for all our languages out of the box. Most modern IDEs (like the PyCharm+RustRover+WebStorm combination) should work as well.
pnpm install
Ensure that NavigaTUM-server is running in the background.
By default, the webclient will connect to the server on https://nav.tum.de
.
If you want to connect to a local version instead, change the environemnt
variable NUXT_PUBLIC_{API,CDN,FEEDBACK,MAPS}_URL
to the appropriate value.
To get a local server running, you can do so:
- either via following the guide to local development, or
- via docker by commenting out the webclient from the docker-compose-file and running
docker compose -f docker-compose.local.yml up --build
pnpm run dev
pnpm run build
Linting with ESLint and formatting via prettier
pnpm run lint
pnpm run format
From the folder of this README, run:
pnpm run type-refresh
The NavigaTUM webclient is made as a nuxt3 server side rendered application based on Vue.js and Vue Router. Our CSS framework is Tailwind.
webclient
├── public/ # 🠔 Static assets such as icons, which cannot get inlined
├── api_types/ # 🠔 code generated via openapi.yaml for typechecking reasons
├── content/ # 🠔 Static pages written in markdown. Served at `/about/<filename>`.
├── assets/ # 🠔 Static assets such as icons
│ └── logos # 🠔 The Logos used by the app
├── components/ # 🠔 Vue components, which are used in views.
├── pages/ # 🠔 The pages are parts of App.vue, which are loaded based their file names.
├── nuxt.config.ts # 🠔 core configuration of nuxt
└── package.json # 🠔 Node package definition and dependencies
Note
cypress is currently temporarily disabled to help in the nuxt transition
For this part of the project, the tests consist mainly of hot-path e2e tests and tests of critical components. PRs improving the coverage are very likely to be accepted. The reason behind these tests is that they fundamentally increase the future productivity by allowing faster review cycles.
Every push and pull request triggers a build that runs linting issues (cypress is currently temporarily disabled to help in the nuxt transition). This helps us catch any regressions or issues early in the development process.
If you encounter any problems while running the Cypress tests or have suggestions for improving the testing framework, please open an issue/pull request on this repository. We appreciate your feedback and contributions.