Git Product home page Git Product logo

sveltekit-rxdb-pouchdb-couchdb-todos's Introduction

SvelteKit, rxDB, PouchDB & CouchDB Todos

NOTE: this repository needs to be updated, it was built using "@sveltejs/kit": "next" in the package.json file. But, SvelteKit has changed it's routing and other things that break the app in it's current state. I also think rxDB has changed as well.

TODO: update this repository upto the new SvelteKit routing and latest rxDB stuff.

A simple todos app using SvelteKit, rxDB, PouchDB, CouchDB and Tailwind CSS. Data is stored in browser IndexedDB with rxDB (PouchDB) and syncs with a remote CouchDB database.

Screenshot of SvelteKit, rxDB PouchDB, CouchDB Todos

Features

  • Add todos
    • By pressing the Add button
    • By pressing Enter key while the caret is in todo item input field
    • Won't add todo item if the todo item input field is empty
    • Keeps caret focus in add todo input field for quick succession of adding todo items
  • Update todos
    • Update todo item on blur or by pressing Enter key
  • Delete todos
    • By pressing X (delete) button
    • By having an empty todo item input field on blur or by pressing Enter key
  • Reactive data
  • Beautiful UI

TODO

  • Change how todo items are updated and marked completed. rxDB doesn't allow svelte binding on rxDB's data directly, get the following error Since version 8.0.0 RxDocument.set() can only be called on temporary RxDocuments

Give it a whirl

Once you've cloned or downloaded the project, install dependencies with npm install (or pnpm install or yarn), then start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

sveltekit-rxdb-pouchdb-couchdb-todos's People

Contributors

chrisallenmoore avatar

Watchers

 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.