Prepare an App folder
In this section, we are going to learn how to prepare a folder before you start writing your app. Pollination offers resources to prepare this folder in such a way that you can automate app deployment to Pollination. We will use these resources to prepare a folder for an app that plots the wind rose from the EPW data.
Prerequisite
To follow this section, you will need to be comfortable doing actions using the command line. Check the following tutorials to learn about the command prompt on Windows and the terminal on Mac.
Creating App Folder
We will use the pollination-apps library to create this folder for us.
Install the pollination-apps
library by using the following command on your command prompt / terminal.
Go to the location on your system where you'd like to create the app folder and run the following command. This article shows how to change directory on windows command prompt to go to a location on your system.
This will ask for the project name. The project name here will become the name of your app. Also, make sure to not have any blank spaces in your project name. In our case, we will choose the project name to be wind-rose.
Next, it will ask for the project_slug. Enter the same name you entered above or keep it blank which will use the same name you entered above for the project_name. We are keeping it blank.
Next, we will enter project_short_description. This is a short description of your app.
Next, comes pollination_owner. This is your username in Pollination. We looked at how to find this owner name in this section.
Next, pollination-apps will ask you whether you'll need the Pollination-viewer in your app. You'll most likely need the Pollination viewer in your app if you are dealing with any 3D geometry. In this case, we're simply creating a 2D interactive chart so we will choose not to have the Pollination viewer.
Next, pollination-apps will give you an option to choose the visibility setting of the app you are deploying. We will choose the public
option. We will choose our app to be public.
Lastly, pollination-apps will give you three options to choose from for continuous integration (CI).
The first option creates the following app folder structure without any CI. In this option, deploying an app on Pollination relies on using the command line. Go to this section to learn how to deploy an app when you have chosen this option.
The second option creates the following app folder structure with basic CI. In this option, deploying an app on Pollination relies on triggering a release on Github. Go to this section to learn how to deploy an app when you have chosen this option.
The third option creates the following app folder structure with advanced CI.In this option, deploying an app on Pollination relies on the commit messages. Go to this section to learn how to deploy an app when you have chosen this option.
Last updated