1. Create a new app
Log in to Corva under your account.
Click the </> button to access Dev Center
</> button
Click + NEW APP button to create a new app.
Choose Back End as a type and click NEXT
Choose Back End
Choose Polling App Scheduler. Then click Next.
Choose Polling App Scheduler
In this example we’re going to receive data from Corva’s completion.wits collection.
Corva’s completion.wits collection
-
Give a name to your app.
-
Select a Segment. Corva Appstore Segment where your app will belong. There are two options: Drilling and Completion. We choose Completion.
-
For completion we have to choose Source Type: Frac or/and Wireline. This field is required for the API to return the correct list of a Frac Fleets or Wells to your completion app.
Choose source type
- Select a Scheduler Type: Data Time, Natural Time or Data Depth. We choose Natural Time
Scheduler type
- Choose a category.
(Optional) Create a data set. This is one of the places where you can create your dataset. Your data set can be:
-
Time-based (it will have timestamps)
-
Depth-based
-
Reference (typically used for non-time non-death, if you want to store data for a data table or users or something like that)
In our example we’ll create a time-based data set.
To create a data set you need to name it. It’s a good practice to name your data set the same as your app. It makes it easier to track it in the list of data sets. Optionally you can fill up the description field.
If you want you can add your own schema.
Dataset creation
Click Next.
To install Corva app generator copy npm command.
Corva app generator
Open your favorite IDE like Visual Studio or PyCharm. Open a terminal there, paste that in and press Enter.
When it is built, come back to the Dev Center.
Choose a language you want to program in: Python or Node.js and copy the CLI command.
Python language
Go back to IDE, paste that in and go through the question the Corva App Generator asks you.
At the end it copies the app template from Dev Center to your environment.
Come back to Dev Center and click Add New App.
2. New app settings
Now the app is sitting in the app store, but there’s no data in there. It’s just a shell of an app. You can see App details here like App Id and the category that you chose.
App details
In the versions section you will upload a version of your app when you develop and test it.
Versions
You can set visibility to Private. So nobody else sees it while you’re developing, or you can set it to developer where you and your team can see it. And when it’s ready to deploy to production, you can set it to company and that’s going to be available to all users of your company.
Visibility options
If you are going to upload an App package that exceeds 250MB size you will have to go to the Settings page and enable the corresponding checkbox.
Settings
Another valuable section is Log files. Once you’ve deployed your code and used signed and added it to an asset and you’re getting data, you can come see your logs there.
Log files
Next steps
- App Template Guide App Template Guide
4.2. Developing Backend Scheduled App