Table of Contents
SIMRA Result Viewer Frontend is the user interface for the data-driven platform that improves cycling safety by visualizing crowdsourced ride and near-miss incident data. The application helps identify high-risk areas, evaluates urban cycling infrastructure, and provides actionable insights through interactive maps and dashboards.
Built with Angular and Nx, this frontend connects to the SIMRA Result Viewer Backend to display cycling safety analytics.
Before you begin, ensure you have the following installed on your local machine:
- Docker: Install Docker
- Docker Compose: Install Docker Compose
- Clone the repository:
git clone https://github.com/simra-project/result-viewer-frontend
- Start the backend service, check out the simra backend for more information.
- Edit environment variables in .env use the .env.example as a template.
To deploy and explore the application, you can use Docker Compose to set up the necessary services.
-
Run the following command to start the services:
docker compose up
-
Access the web application at
http://localhost:25080
.
To set up the development environment, ensure you have the following installed:
- Node.js (v16 or later): Install Node.js
- Nx CLI:
npm install -g nx
-
Start frontend development server:
nx serve
-
Access the web application at
http://localhost:4200
.
Name | Path | Description |
---|---|---|
frontend |
src | The base entrance point of the angular application. |
The nx project is structured into several domain libraries, each responsible for specific functionalities.
Name | Path | Description |
---|---|---|
common |
libs/common | Shared utilities, types, components, and logic used across the frontend (e.g., atomic design components, helper functions, and constants). |
incidents |
libs/incidents | Frontend logic for displaying incident data of rides. |
regions |
libs/regions | Displays regional risk data and interacts with APIs/services to fetch and filter rides or incidents by region. |
rides |
libs/rides | Handles ride-related logic: fetching ride data from the backend and providing ride visualization components to check if mapping process was successful, this functionality is not exposes in a production environment. |
streets |
libs/streets | Focuses on street-level data: fetching OSM street information, street safety metrics, and providing components to visualize risk assessment on street map as well as a detailed individual street report. |
Role | Name | Contact |
---|---|---|
Project Supervisor | David Bermbach | TU Berlin Profile |
Developer | David Schmidt | Portfolio • Github |
Resource Type | Description | Link |
---|---|---|
Project Management | Kanban board tracking development progress and tasks | Simra Project Board |
K6s | Performance tests to check the capabilities of the application | k6s |
Live Demonstration | Interactive dashboard showcasing real-time cycling safety analytics | Simra Dashboard |