BaasBox is an Open Source project that aims to provide a backend for mobile and web apps.
Further information can be found at www.baasbox.com.
BaasBox .Net SDK targets: Windows 8, Windows Phone 8.1, Windows Phone Silverlight 8, Xamarin.Android, Xamarin.iOS, Xamarin.iOS (Classic) and should work on any system which supports .Net 4.5.
This SDK is still under development. At this moment it has:
- User management (registration, login, change/reset password, logout)
- Collection management (create, delete)
- Documents management (create, retrieve, search, modify, delete)
There is a big bunch of functionality missing (social, push notifications, files, etc), so feel free to make requests, report issues or even better - to contribute to this project.
- Add a reference to BaasBoxNet project
- Create a
BaasBox
client object:var box = new BaasBox("<server_ip>", "<appcode>");
- Use it! At first you need to signup or login with your user. This can be done with
BaasBox.UserManagement.SignupAsync
orBaasBox.UserManagement.LoginAsync
.
Hint: register instances ofIBaasBoxUserManagement
,IBaasBoxCollections
andIBaasBoxDocuments
in your DI container and use them instead of direct call to BaasBox client object. - Create first collection.
await box.Collections.CreateAsync(CollectionName);
- Create class that inherits from
BaasDocument
. Create default constructor and setBaasDocumentClass
property to your collection name. - Create instance of your
BaasDocument
object and put it into cloud viaawait box.Documents.CreateAsync(myObject);
Please refer to BBWPDemo
project. It is a simple Windows Phone application which just shows how to use basic SDK functionality.
- Add more validations to SDK methods.
- Wrap all SDK exceptions into
BaasException
. - Implement more original SDK methods.