An open API service indexing awesome lists of open source software.

https://github.com/couchbase-examples/dotnet-xamarin-cblite-userprofile-standalone

Quickstart in Couchbase Lite using a standalone database with dotnet and Xamarin. This tutorial will show you how to use key value pair to do full CRUD operations to the database.
https://github.com/couchbase-examples/dotnet-xamarin-cblite-userprofile-standalone

couchbase-lite couchbase-mobile csharp dotnet xamarin xamarin-forms

Last synced: 4 months ago
JSON representation

Quickstart in Couchbase Lite using a standalone database with dotnet and Xamarin. This tutorial will show you how to use key value pair to do full CRUD operations to the database.

Awesome Lists containing this project

README

          

# Quickstart in Couchbase Lite in C# with dotnet and Xamarin

[![Builds](https://github.com/couchbase-examples/dotnet-xamarin-cblite-userprofile-standalone/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/couchbase-examples/dotnet-xamarin-cblite-userprofile-standalone/actions/workflows/build.yaml)

#### Build an cross platform iOS, Android, and UWP App in Xamarin Forms with Couchbase Lite

> This repo is designed to show you an app that allows users to log in and make changes to their user profile information. User profile information is persisted as a Document in the local Couchbase Lite Database. When the user logs out and logs back in again, the profile information is loaded from the Database.

Full documentation can be found on the [Couchbase Developer Portal](https://developer.couchbase.com/tutorial-quickstart-xamarin-forms-basic).

## Prerequisites
To run this prebuilt project, you will need:

- For iOS development a Mac running MacOS 11 or 12
- For iOS Development [Xcode 12/13](https://apps.apple.com/us/app/xcode/id497799835?mt=12)
- For Android development SDK version 22 or higher
- For UWP development, a Windows computer running Windows 10 1903 or higher
- Visual Studio for [Mac](https://visualstudio.microsoft.com/vs/mac/) or [PC](https://visualstudio.microsoft.com/vs/)

### Installing Couchbase Lite Framework

The [Couchbase Documentation](https://docs.couchbase.com/couchbase-lite/3.0/csharp/gs-install.html) has examples on how to add Couchbase Lite via nuget package.

## App Architecture

The sample app follows the [MVP pattern](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter), separating the internal data model, from a passive view through a presenter that handles the logic of our application and acts as the conduit between the model and the view

## Try it out

* Open `src/UserProfileDemo.sln` using Visual Studio
* Build and run the project.
* Verify that you see the login screen.

## Conclusion

Setting up a basic dotnet Xamarin Forms app in C# with Couchbase Lite is fairly simple, this project when run will allow a user to login, update a user profile, and save the information into the embedded database.