Download the Base App
The Weather app is used to display the weather data for a city based on user inputs. You will be updating this app to integrate with the external API provider.
- To create the weather app in Neutrinos studio version 6.0.0 to 6.1.0, download the base app from here.
- To create the weather app in Neutrinos Studio version 6.1.x to 7.0.1, download the base app from here.
- To create the weather app in Neutrinos Studio version 7.0.2 or later, see our latest tutorial.
Import the App to Studio
- Open Neutrinos Studio.
- Click on the Studio home page, and select the downloaded base app from your local machine.
- The app gets imported to the Studio.
This app is built on Neutrinos Studio version 6.0.3. If you are using a later version of Neutrinos Studio, migrate the app to the latest version by clicking on the app card. After migrating the app, follow manual migration steps (if any) mentioned in the Migration guide.
Explore the App
Click the app to open its Application page and explore the existing elements.
Click the Pages option on the Studio Application page to see the app pages.
The app will display the following pages:
- weathersearch: This page provides the UI for the user to input the city name for which the weather details have to be fetched. Also, notice that the weathercard and log view is added to the weathersearch page. See Reuse Pages using Views for more details.
- weathercard: This page is used to create a weather card that shows the weather information returned from the Openmapweather API provider.
- log: This page is used to log the success and failure of the API call while fetching the weather data.
Click the Styles option on the Studio Application page to view the app styling. The following CSS styling is set for the app pages and its components:
font-family: Roboto,"Helvetica Neue",sans-serif;
padding: 0 5px;
border: 2px solid rgba(0, 0, 0, 0.12);
color: white !important;
background: #343438 !important;
Click the Models option on the Studio Application page menu bar to view the data models.
The logobject data model is created as follows. This data model determines the logical structure of the logged data.
Click the Routes tab to view the app navigation. On deployment, routes enable navigation from one page to another as a user performs various tasks using the application.