floriday/README.md

30 lines
946 B
Markdown
Raw Normal View History

2022-12-05 12:58:16 +00:00
# Floriday
2022-12-05 12:53:30 +00:00
Requires [Node.js](https://nodejs.org/en/) 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](https://sequelize.org/) ORM.
2. Query the Floriday API and store the data in the database.
This is done using the [Axios](https://axios-http.com/) module.
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](https://sequelize.org/) ORM and storing the data as it is received from the API,
so it can be compared with the previous data.
2022-12-05 12:58:16 +00:00
## 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.
2022-12-05 12:53:30 +00:00
To install dependencies:
```bash
npm install
```
To run:
```bash
npm start
```