Go to file
2020-06-16 15:03:57 +02:00
backend changed query syntax 2020-06-14 19:28:06 +02:00
frontend Add base64 encoding for search request 2020-06-14 20:57:09 +02:00
Scripts first draft for database population (climate) 2020-06-12 10:48:59 +02:00
.dockerignore Adds needed docker-support to enable automatic deployment via teamcity 2020-06-16 15:03:57 +02:00
.gitignore initial backend, first score calc draft 2020-06-10 08:07:15 +02:00
docker-compose.yml Adds needed docker-support to enable automatic deployment via teamcity 2020-06-16 15:03:57 +02:00
Dockerfile Adds needed docker-support to enable automatic deployment via teamcity 2020-06-16 15:03:57 +02:00
README.md little cleanup 2020-06-14 13:33:07 +02:00

CC-Data | Traveloptimizer

Campus Cup AKMC Data Traveloptimizer

Backend

Requirements

  • MariaDB or MySQL
  • node 10.12 or higher
  • Configure database in .env-file or environment variables. See .env for reference
  • Set API-Key for meteostat.net in .env-file or environment variable
  • import setup.sql for sample data

Start

Customize your search with query parameters. For now, only climate parameters are supported. If you omit climate queries, all climate parameters will be randomized.

Following queries are supperted by now:

  • from=YYYY-MM-DD (required)
  • to=YYYY-MM-DD (required)
  • temperature=NUMBER,NUMBER
  • raindays=NUMBER,NUMBER
  • sunhours=NUMBER,NUMBER
  • percipitation=NUMBER,NUMBER

Examples: http://localhost:3000/v1/search?from=2020-06-14&to=2020-07-29&temperature=27,29&raindays=8,12&sunhours=250,300 http://localhost:3000/v1/search?from=2020-06-14&to=2020-07-29

More

To get more search results, add more entries with meteostat station IDs to the regions table in the database

Frontend

Installation

  • Install node 10.15.3
  • Run "(cd frontend && npm i)"

Start dev server

  • Run "(cd frontend && npm run start)"