Git Product home page Git Product logo

germanmontejo / mobile-training-todo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from couchbaselabs/mobile-training-todo

0.0 2.0 0.0 54.48 MB

ToDo List app built with Couchbase Mobile -

Home Page: http://developer.couchbase.com/documentation/mobile/current/training/index.html

Java 13.28% JavaScript 30.17% Ruby 0.15% Shell 0.99% C# 41.85% Swift 12.40% Objective-C 0.85% Python 0.31%

mobile-training-todo's Introduction

Getting Started

To run the app, open the folder for the platform of your choice (android, dotnet or ios) and follow the instructions in the respective README.

Starting Sync Gateway

  1. Download Sync Gateway.

  2. Start Sync Gateway with the configuration file in the root of this project.

    ~/Downloads/couchbase-sync-gateway/bin/sync_gateway sync-gateway-config.json
  3. Add lists and tasks and they should be visible on the Sync Gateway Admin UI on http://localhost:4985/_admin/.

Moderators

The configuration file creates a few users by default. Users with the moderator role can:

  • Update/delete any user's list.
  • Have access to all the lists in the system.
  • Can invite any number of users to a list.

The role created in Sync Gateway enforces security in the Sync Function. Couchbase Lite on the other hand can't tell if the user is a moderator. For that reason, the app uses another document of type "moderator" to detect the user's status and permissions. The "moderator" document can be created through the Admin REST API with the following.

curl -X POST 'http://localhost:4985/todo/' \
      -H 'Content-Type: application/json' \
      -d '{"_id": "moderator.mod", "type": "moderator", "username": "mod"}'

mobile-training-todo's People

Contributors

adamcfraser avatar borrrden avatar jamesnocentini avatar jmelosegui avatar npomfret avatar pasin avatar sethrosetter avatar tleyden avatar waynecarter avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.