Skip to content

peponi/fxos-app-contacts-couchdb-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Maintenance Intended

What's that

This is a WebApp in a Tron_Legacy style for the FirefoxOS operating system, to synchronize contacts with a remote CouchDB.

Screen Shot

Firmware upgrade links:

Info

CouchDB setup (if you want to sync your data to your CouchDB)

you need to enable CORS to sync data fromt your phone to the DB

CouchDB doesn't come with CORS enabled by default. This is a problem for libraries like PouchDB, which depend on being able to access CouchDB ...

just do the following in your terminal

HOST=http://adminname:password@couchdb_ip_address:5984 # or whatever you got

curl -X PUT $HOST/_config/httpd/bind_address -d '"0.0.0.0"'
curl -X PUT $HOST/_config/httpd/enable_cors -d '"true"'
curl -X PUT $HOST/_config/cors/origins -d '"*"'
curl -X PUT $HOST/_config/cors/credentials -d '"true"'
curl -X PUT $HOST/_config/cors/methods -d '"GET, PUT, POST, HEAD, DELETE"'
curl -X PUT $HOST/_config/cors/headers -d '"accept, authorization, content-type, origin, referer, x-csrf-token"'

via: github.com/pouchdb/add-cors-to-couchdb

User story

as a FFOS1.1 user I want to export all my contacts
so thant I can upgrade my operating system and import all contacts to the new OS

Acceptance criteria:

  • contacts can be read from FirefoxOS
    • v1.1 ✔
    • v1.2 ✔
    • v1.3 ✔
  • contacts can be send to CouchDB ✔
    • check if contact already exist on CouchDB - by comparing phone or email or name
    • if contact already exist or has been synced update synced contactlist with blue '✔' or red '⨯'
  • contacts can be fetch from CouchDB ✔
  • contacts can be import in FirefoxOS ✔
    • check if contact already exist on FirefoxOS - by comparing phone or email or name ✔

FirefoxOS API

About

a FirefoxOS WebApp to synchronize Contacts with a CouchDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published