The company "Grupo ASV" asked me to perform a technical test to ensure the required knowledge about the technology stack is adquired.
They have asked us for a web application to check the weather forecast at any municipality of Spain. After studying the different ways to obtain this information, has determined that it would be best to retrieve it via the AEMET API. For this we must:
- Request an API Key from https://opendata.aemet.es/centrodedescargas/inicio.
- Review the API documentation and find the necessary methods to retrieve the API Next information. Specifically, we will have to locate the following services:
- Retrieve a list with all the municipalities in Spain
- Retrieve the specific prediction for a municipality
You will need to install docker in order to be able to execute and test the application. Moreover, docker-compose extension is required too.
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
-
Get a free API Key at https://opendata.aemet.es/centrodedescargas/inicio
-
Clone the repository.
$ git clone https://github.com/jtorregrosa/meteoasv.git
- Enter your APIKEY in the file
deploy/environments/meteoasv-api.env
APPLICATION_AEMET_APIKEY=YOUR_AEMET_API_KEY
- Run the whole stack.
$ docker compose -f deploy/docker-compose.yml up
- Access http://localhost:8081 and evaluate this test with mercy =)
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.md
for more information.
Jorge Torregrosa Lloret - jtorregrosalloret@gmail.com