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

Optimising Unity new UI System

UI/Sprite textures aren't packed into a texture atlas by default. A tag is needed to group them. Read the documentation / tutorial on the sprite packer. Overlapping text/graphic boundaries with another text/graphic will create additional draw calls, even if the actual visual graphics do not overlap. Grids (other layouts too I presume) need minimum 1 pixel spacing between items, else items are considered overlapping and will create additional draw calls. Images with alpha 0 are still rendered. They are rendered with alpha 0 even though they are not seen. Unity currently does not support non-rectangle shapes as Sprites, so using the TightSpitePacker policy will cause image artifacts. When UI objects are offscreen, they are still batched (rendered as well?). Possible solutions: Change parent to non-UI parent, as UI Camera will no longer detect it Change layer of panel so UI Camera will no longer detect it Disable gameobject when off-screen ScrollRect performance tuning S

Setting up perforce server on Windows and allows connections from other local machines

Download p4server.exe for windows and install it. Restart the computer after you've installed it. Since it will install as windows service, you don't have to start the service and you're now ready to connect using p4v from local machine. But there will be a problem when you're trying to connect from another service since the perforce service is running on localhost:1666 so it only accept local connection only. You need to bind to 0.0.0.0:1666 but it will be quite hard and have a risk to change default perforce config files.. What you can do is you can modify the host file in other remote machines to connect to the server computer. In windows, hosts file is located at Windows/etc/driver folder and on Mac it's located at sudo nano /etc/hosts add the following line to the host file [your server machine local ip address] perforce Now in the p4v client of the remote machines, you will be able to connect using perforce:1666 Note : Don't forget to tu

How to Fix the Unity Asset Server error "Cannot Start Service" on Windows

If you're using Unity Asset server on Windows, you may notice that you are getting Could not start server. It happens after using the asset server for a long time because of the small asset server bug (password expires). You will have to reset the password or set it to never expire to avoid happening from this kind of error. Here are the steps below to fix this problem. Step 01 - Open Computer Management under Control Panel or search from your computer. Step 02 - Locate the Local Users and Group Folder under System Tools.                      Note : This is only available for Windows 7 Pro/Ultimate users. Step 03 - Right lick on unitysrv and click properties. Step 04 - Under user properties, untick "User must change password at next logon" and tick "Password never expires" box. It's always good to change this setting after you've installed Asset server to avoid connection problem at later time. PS: This only happens on Windo