Skip to content
Snippets Groups Projects
Commit 38f3785f authored by jonschi's avatar jonschi
Browse files

update readme for github

parent aba7db56
No related branches found
No related tags found
No related merge requests found
# Proyecto IGEV - Casos de Covid en Europa
# IGEV Project - Covid Cases in Europe
Este Repo es para mi **Proyecto** en IGEV. Para ver en el navegador el prototipo actual, sigue este enlace: [https://jschiefner.github.io/](https://jschiefner.github.io/)
This Repo is for my **Project** in the class *Graphical User Interfaces and Virtual Environments*. To see it live in your browser, follow this link: [https://jschiefner.github.io/](https://jschiefner.github.io/). Because this project is for a spanish class, the interface is also spanish 🇪🇸.
### Estructura del proyecto
<center>
<a href="https://jschiefner.github.io/" target="_blank">
<img src="https://github.com/jschiefner/proyecto-covid-threejs-igev/blob/main/screenshot.png?raw=true">
</a>
</center>
Hay una parte Frontend para la visualización y una parte Backend para administrar los datos. Actualmente, el Backend no es utilizado. En el frontend, el fichiero [Globe.vue](frontend/src/components/Globe.vue) es el más importante y interesante, porque se trata de la visualización en 3D en que consiste el prototipo actualmente.
## Project Structure
There are two parts in the repo, a `frontend` folder containing all the code for the visualization and the single page vue app. The `preprocessing` folder contains scripts which preprocess the data from the data sources mentioned below and makes it ready for the frontend to be used.
Use `npm install` in both folders to install dependencies. For the `frontend` you can then use `npm run dev` in the `frontend` folder to run the application on a local development server. In the `preprocessing` folder you can run `npm run update` to update the database with the latest covid data. This needs to be pulled from the data source below first. You also need a postgres database that will hold the covid data. Once imported into the database, it can be written to a json file with `npm run create-covid-file`, this needs to be copied into the `frontend/public/` folder and be required in the frontend code.
## Data
- [https://www.ecdc.europa.eu/en/publications-data/weekly-subnational-14-day-notification-rate-covid-19](https://www.ecdc.europa.eu/en/publications-data/weekly-subnational-14-day-notification-rate-covid-19) to download covid data
- [https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts](https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts) to download territorial data which makes it possible to draw the borders on the map.
Data samples up to a certain point are already included in this repository.
/*
* get current file from: https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts
* Download options:
*
* Year: NUTS 2021
* File format: GeoJSON
* Geometry type: Polygons (RG)
* Scale: 60M (this is the smallest resolution which yields the best performance but other resolutions work too)
* Coordinate reference system: EPSG: 4326 (also used by GPS)
*
* Get current data from: https://www.ecdc.europa.eu/en/publications-data/weekly-subnational-14-day-notification-rate-covid-19
* choose the JSON format
*/
const fs = require('fs');
......
screenshot.png

6.07 MiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment