GithubHelp home page GithubHelp logo

pedroleon / elpouch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whitetigle/elpouch

0.0 0.0 0.0 1.01 MB

Use PouchDB with Fable!

License: MIT License

F# 98.51% Batchfile 0.07% Shell 0.34% JavaScript 1.08%

elpouch's Introduction

Project needs to update to Fable.Core 3.x. It also relies on old version of other libraries. So for now, don't use. Thanks.

Disclaimer

⚠️ This is a highly experimental project. While many things work, it should be noted that the Api may change. So for now use at your own risks. ⚠️

ElPouch

Fable wrappers and helpers for PouchDB

Package Stable Prerelease
ElPouch NuGet Badge NuGet Badge

Install with paket:

paket add ElPouch --project /path/to/Project.fsproj

Goals

ElPouch wants to easy things when it comes to using pouchDb with Fable and F#.

The library is powered by well known Fable libs:

The package comes with:

  • Core library bindings: PouchDB.Core
  • Helpers : ElPouch.Relax
  • Helpers for Elmish: ElPouch.Elmish.Relax

While the core lib works on quite any JS project and have been tested, Helpers have been designed in a very opiniated way: they fit your Fable + Elmish + Thoth project.

Test suite

Type yarn test to prepare project and run tests locally.

How to start?

Today, there's no proper doc. But we do have easy to follow tests in the tests folder. So that's the easiest way to get started.

What's ready to use?

The bindings are already to Use. Simply import PouchDB.Core and start playing with PouchDB! Samples are ready to follow in the test suite.

Implemented Operations

  • PUT to insert, update and delete
  • GET
  • BULK INSERT
  • ALLDOCS

Next

The order is random and this is work in progress:

  • Put vs post: managing optional ids and removing the need for System.Guid
  • allDocs for queries
  • allDocs with pagination
  • replication
  • map/reduce queries
  • proper test suites: mimic and comply with pouchdb offical test suites.
  • db management (compaction, pouchdb adapters)
  • Relax: easy to use helpers for everything with concrete cases (manage conflicts, auto-setup adapters, etc...)

elpouch's People

Contributors

whitetigle avatar halfabench avatar slang25 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.