Go to file
Pau fcd0b5f1ec Now the token gets refreshed when necessary 2022-12-19 14:14:10 +01:00
models refactor model structure to remove boilerplate in the main file, created connection with the floriday staging API 2022-12-19 13:21:35 +01:00
.gitignore Initial commit 2022-12-05 13:53:30 +01:00
README.md refactor model structure to remove boilerplate in the main file, created connection with the floriday staging API 2022-12-19 13:21:35 +01:00
index.js Now the token gets refreshed when necessary 2022-12-19 14:14:10 +01:00
package-lock.json refactor model structure to remove boilerplate in the main file, created connection with the floriday staging API 2022-12-19 13:21:35 +01:00
package.json refactor model structure to remove boilerplate in the main file, created connection with the floriday staging API 2022-12-19 13:21:35 +01:00

README.md

Floriday

Requires Node.js v14.x.x or higher.

The Floriday service project should perform the following tasks:

  1. Create / mantain the table structure to allow the storage of the data provided by the Floriday API. This is done using the Sequelize ORM.
  2. Query the Floriday API and store the data in the database. This is done using the node-fetch package.
    2.1. The data is requested every minute, but only the data that has changed is stored in the database. This is done using the Sequelize ORM and storing the data as it is received from the API, so it can be compared with the previous data.

Guidelines

  • In case a new model is created, it must be created in the models folder and follow the same structure as the other models.

To install dependencies:

npm install

To run:

npm start