This is the Webpage version for the http://github.com/famoser/SyncApi
a nuget portable library to sync entities in a very convenient way.
This library manages the synchronization between multiple installation of an application of the same user. You may save any entity you want, and it will be synced typesafe. Included is some sort of version control (you will be able to access older versions of an entity).
It uses the roaming storage provided by UWP to save user information, all actual data is synced over a php api. The library is heavily customizable, while allowing an easy and straightforward approach for simple use cases.
Code example:
//construct the api helper (storage service is implementated in Famoser.UniversalEssentials for UWP)
IStorageService ss = new StorageService();
var helper = new SyncApiHelper(ss, "my_application_name", "https://api.mywebpage.ch");
//get my repository
var repo = helper.ResolveRepository<NoteModel>();
//save my model
await repo.SaveAsync(new NoteModel { Content = "Hallo Welt!" });
//retrieve it later on
ObservableCollection<NoteModel> coll = await repo.GetAllAsync();