willayy / DAT257-Agile

Agile project in DAT257
1 stars 0 forks source link

33 getcrimedata is invalid #50

Closed willayy closed 5 months ago

willayy commented 5 months ago

Adding a fetching script to the project directory that can be run using

npx ts-node src/scripts/fetcher.ts

from the agile-app directory, this script continously and safely fetches data from the https://polisen.se/om-polisen/om-webbplatsen/oppna-data/api-over-polisens-handelser/ and add its to a local storage located in agile-app/public/json.

The interface for developers getting crime data is still the same but now there is much more data coming in.

willayy commented 5 months ago

No not really, just an arbitrary limit set to not get too big of a dataset. @Palpat3

Palpat3 commented 5 months ago

No not really, just an arbitrary limit set to not get too big of a dataset. @Palpat3

Okay then I think everything looks fine. Many things I don't understand but well-structured and clear comments helped me understand in the end, well done getting it done today!