Git Product home page Git Product logo

my-gallery's Introduction

My Gallery โ€” Offline first image gallery, in sync thx to pouchdb/sync gateway websocket

This project is a proof of concept for synching pouchdb - couchdb databases, using base64 images as documents. Since 19/02/2018, the sync is done over websocket of sync gateway.

Dependencies

Couchbase server (https://www.couchbase.com/products/server)

Sync gateway (https://www.couchbase.com/products/sync-gateway)

Electron packager (https://github.com/electron-userland/electron-packager) npm install -g electron-packager

Configuration

Once Couchbase server is running, connect using root account, and create images bucket. Then create a user account, which will be used in sync gateway. This user needs read/write rights on the images bucket.

Then, adapt the configuration file of sync gateway to accept CORS, map the images database to the images bucket, and provide user credentials to access the couchbase bucket. A - very - useful config sample is provided at the root location of the project (serviceconfig.json).

Packaging

Supports Electron (windows & OS X) packaging, using the following command lines:

npm run package-win
npm run package-osx

Installers

Support of windows and OS X installers is on-going, but not yet bug free. Command lines are:

npm run install-win
npm run install-osx

my-gallery's People

Contributors

genglefr 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.