Skip to main content

Getting Starting with CloudyRec

Part I Creating a new CloudyRec App

Welcome to the CloudyRec. CloudyRec is the fastest mobile backend solution for your great applications. Let’s see how fast you can integrate CloudyRec in your project.
After you’ve registered a new developer and logged in, you can go to the dashboard and define a new app. In this example, I will create a project named “TodoList” as shown in the figure below. 

Figure 1.0 Creating a new app

Let’s define the resource called “user_account” and make it authenticable. Authenticable means that you want to include username and password attributes in this resource and also there will have “Authenticate” function available when you’ve generated the code and you can call this method to authenticated users of your application. I’ll discuss more about this method in the later sections.


Note : if you click the “user_account” resource, you can see the “_passwd” and “_uname” attributes are already added automatically as you’ve marked as authenticable for the “user_account” resource.

After you’ve created the “user_account” resource, let’s create a new resource called “item” and make it as child object of the “user_account” resource by clicking edit button available at the right side of the resources.

In the edit mode of the resource, you can specify which resource to belong in the dropdown list. In this example, I will chose "user_account" as its parent object.

Figure 1.1 Defining a child resource

You can also define the children of children's object. For example, todo_items can also contains the item list while useraccount can contain the number of todo_items as well.

Figure 1.2 Defining another child resource of previous child resource

So what's next after defining the outline schema for our backend? It's time to add some details schema to our outline schemas. If you click on the todo_item resource from the Resources tab, you can be able to add the specific attributes for the resource. I am gonna add the following attributes with certain datatypes for this tutorial.

Figure 1.3 Adding todo_item attributes

Now lets add the remaining attributes for item_details. I will add the following attributes for item_details resource.
Figure 1.3 Adding item_details attributes

If you've completed adding the attributes for each resources as shown in the above, you are ready to start developing a todo-list app for any mobile platform that you're targeting to. For this tutorial, I will guide you to develop the metro style app for WinRT but you're not limited to do only for WinRT app as you can use the same database for your iPhone and android apps too.

The next section for this tutorial will be about how to use CloudyRec code generator to generate the modal code for your project. Please click here to continue to the next section.



Comments

Popular posts from this blog

Using XAML on Monogame for WinRT (Part 2)

Integrating Monogame with XAML Metro UI If you're coming from the previous section, you now have a metro UI application project with blank page and also have monogame.windows8 library reference to the project. Now Let's fix some source code for the  pages to get XAML working with monogame. Step01 ( Hacking App.xaml.cs file) App.xaml.cs delivers the most important start point while rendering a particular page in Metro UI application. I added gamePage and mainPage as  a public variables as they become accessible from other classes to for page nagivations. Here is the source code for to see what it looks like for the final App.xaml.cs file. sealed partial class App : Application     {         public ContentManager Content { get; set; }         public GameServiceContainer Services { get; set; }         public GamePage gamePage;         public MainPage mainPage;   ...

Using CloudyRec Code Generator

The greatest CloudyRec feature among other backend service provider is the Code Generator where it can generate the native modal source code with the specified schema in the previous " Getting Started " section. Sandbox Environment When you’ve satisfied the attributes and resources for the applications, you can start loading into the sandbox to make the apps ready for testing.  Go to the Define tab of the dashboard and click the “Load to sandbox” button located at the right side of the application name as shown in the figure below. Figure 1.0 Loading to Sandbox environment Note : In CloudyRec, there are two types of development modes available called Sandbox and Production. Sandbox is for testing the applications while developing and it’s totally free and developer doesn’t needs to pay a penny while using Sandbox.  I would recommend to put into production mode once you’ve published the apps as the data from the Sandbox will be flushed in ti...

Using XAML on Monogame for WinRT (Part 1)

Introduction Since I am planning to develop games for WinRT, I found out that the MonoGame is the most suitable framework for people like me who has experience with developing games with XNA framework. Although Windows Phone 7 offers to integrate Silverlight components with XNA, WinRT architecture is completely different from the previous framework. XNA games are not allowed to upload and showcase to new appstore because of the new terms and condition requirements and there's no way to integrate new Metro UI with XNA either. MonoGame solves this problem by creating XNA framework like wrapper over SharpDX which is the best and fastest DirectX wrapper available on current opensource projects.  However MonoGame offers XNA looks alike framework, the best solution would be combining Metro UI with MonoGame framework. Here is the tutorial of how to integrate MetroUI with MonoGame framework. Thanks to  Petrroll  on MonoGame forum for the sample code of MonoGame with XAM...