Git Product home page Git Product logo

todolite-android's Introduction

**This repository is in the process of being deprecated. See the Android TODO app in the training documentation for a more up-to-date sample.

ToDo Lite for Android

Join the chat at https://gitter.im/couchbase/mobile

A shared todo app that shows how to use the Couchbase Lite Android framework to embed a nonrelational ("NoSQL") document-oriented database in an Android app and sync it with Couchbase Server in a public or private cloud.

screenshot

Get the code

$ git clone https://github.com/couchbaselabs/ToDoLite-Android.git
$ cd ToDoLite-Android

Build and run the app

  • Import the project into Android Studio by selecting build.gradle or settings.gradle from the root of the project.
  • Run the app using the "play" or "debug" button.

Point to your own 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. Open Application.java and update the SYNC_URL_HTTP constant to point to your Sync Gateway instance.

    private static final String SYNC_URL_HTTP = "http://localhost:4984/todolite";

    You can use the adb reverse tcp:4984 tcp:4984 command to open the port access from the host to the Android emulator. This command is only available on devices running android 5.0+ (API 21).

  4. Log in with your Facebook account.

  5. Add lists and tasks and they should be visible on the Sync Gateway Admin UI on http://localhost:4985/_admin/.

Community

If you have any comments or suggestions, please join our forum and let us know.

License

Released under the Apache license, 2.0.

Copyright 2011-2014, Couchbase, Inc.

todolite-android's People

Contributors

jamesnocentini avatar pasin avatar tleyden avatar devexter avatar hideki avatar sethrosetter avatar

Watchers

James Cloos 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.