'Return data from third party APIs and store in database using Sequelize
I am making a City application which uses Mapbox and WeatherStack APIs to get some information like temperature, longitude and latitude.
I am using Express.js, Sequelize and MySql and following MVC model.
My project structure looks like this
Connection to APIs is done by the folders under utils. I can insert new rows or use all my CRUD operations functions with Postman but I want to use my index.html file to make these operations.
Now, how can I return the temperature, latitude and longitude values and use them in my controllers file?
Here is the github link to my project.
Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
