/DAT257-Agile

Agile project in DAT257

Primary LanguageTypeScript

DAT257-Agile

Agile project in DAT257

This is a Next.js project bootstrapped with create-next-app.

Table of Contents

Description

Our crime visualization tool is an attempt to revolutionize the way crime data is analyzed and handled in Sweden. By harnessing the power of data visualization and leveraging the Swedish Police's event API, we strive to provide users with actionable insights which contribute to safer societies and well-informed decision-making processes.

Installation

Note that the following commands are to be run in the agile-app directory, not DAT257-Agile.

If the package-lock.json was recently updated, or you have not run the project in a long time please run:

npm install

Otherwise / afterwards, run the development server:

npm run dev

The application uses an external script to safely and continously fetch JSON data from the police API to aquire a bigger dataset. This script is run by the following command:

npx ts-node src/scripts/fetcher.ts

Open http://localhost:3000 with your browser to see the result.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Features

  • Händelser(Events) displays crime type, municipality/county, GPS position, id number, brief description and a link taking the user to a more in depth description on the swedish police webbsite. The events can be filtered by crime type (brottstyp), municipality/county (kommun eller län) and date. image

  • Statistik(Statistics) generates a table with three colums containing municipality/county, crime type (brottstyp) and a number depicting the amount of reports gathered by the swedish police of that specific crime type. Screenshot 2024-05-09 at 15 25 47

  • Visualisering(Visualization) lets the user plot a bargraph displaying a specific crime and municipality/county over a pre determined time period. Screenshot 2024-05-09 at 15 32 44

  • Om oss(About us) contains information about why this project was created along with names and contact information of the developers. Screenshot 2024-05-09 at 15 34 27

Developers

Jonatan Markusson,
Max Dreifeldt, Lucas Häyhänen, William Norland, Mandus Högberg, Erik Andreassson, Alexander Muhr,