Giter Site home page Giter Site logo

fjsnogueira / ionic-pouchdb-todo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielzen/ionic-pouchdb-todo

0.0 3.0 0.0 1.63 MB

A simple Ionic Todo app with a PouchDb local storage backend configured to sync with a CouchDb installation. Demo of offline functionality with server synchronization.

JavaScript 88.83% CSS 11.17%

ionic-pouchdb-todo's Introduction

ionic-pouchdb-todo

A simple Ionic Todo app with a PouchDb local storage backend configured to sync with a CouchDb installation. Demo of offline functionality with server synchronization.

You can watch me demo building the app at FITC Spotlight: AngularJS in Toronto.

This repository has multiple releases you can download or tags you can checkout to see the incremental building of the application.

Installation

I've included the most current version of Ionic (1.0.0-beta.6) and PouchDb (2.2.3) as of this check-in. This will enable running locally the app in a browser without needing node to install cordova, ionic, or gulp

Run the App

All of the necessary javascript files are in the repo for simplicities sake. You can cd into the www directory and run

python -m SimpleHTTPServer 8000

You can then just open http://localhost:8000/index.html in a browser.

Personally I use WebStorm which has a built in server. From a JetBrains product, you can select "View...", "Open in Browser" on index.html.

The final version of this demo requires you to download and install CouchDb, which runs on port 5984.

iOS version

However, to run this as a mobile application in iOS emulator, do the following to setup :

$ cd ionic-pouchdb-todo
$ sudo npm install -g cordova ionic gulp

To run in the iPhone Simulator:

ionic platform add ios
ionic build ios
ionic emulate ios

Building Out & Updating Ionic or PouchDb

To continue working on this repository, adding tests, using SASS, you can

$ npm install
$ gulp install

To update to a new version of Ionic, open bower.json and change the version listed there.

For example, to update from version 1.0.0-beta.6 to 1.0.0-beta.7, open bower.json and change this:

"ionic": "driftyco/ionic-bower#1.0.0-beta.6"

To this:

"ionic": "driftyco/ionic-bower#1.0.0-beta.7"

After saving the update to bower.json file, run gulp install.

Alternatively, install bower globally with npm install -g bower and run bower install.

ionic-pouchdb-todo's People

Watchers

James Cloos avatar Fernando Nogueira 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.