Git Product home page Git Product logo

simple-example's Introduction

@feathersjs-offline/example

An example client and server showcasing FeathersJS offline-first realtime support for own-data and own-net protocols as described in the docs here.

This example is a showcase of the algorithms and not your usual implementation (which is a lot simpler - just follow the descriptions here).

Installation

git clone https://github.com/feathersjs-offline/example

Documentation

This collection of packages i interesting due to to mainly two things:

  • it fully supports own-data and own-net as described in You can read the docs offline-first and the updated docs here.
  • it can be used almost invisibly - you do not have to change your coding habits to utilize it, just set it up and forget all about it!

Running the Example

After cloning the repository execute

cd feathersjs-offline/example
npm install

This will take a couple of minutes. When this has completed successfully you start the server by executing

node server

The server will start and write a message like:

Feathers application started on http://localhost:3030

after create data = {"text":"This is a message from The Creator Himself!","updatedAt":"2020-12-11T07:05:58.258Z","uuid":"7_lEahFZN","onServerAt":"2020-12-11T07:05:58.323Z"}
result: {"text":"This is a message from The Creator Himself!","updatedAt":"2020-12-11T07:05:58.258Z","uuid":"7_lEahFZN","onServerAt":"2020-12-11T07:05:58.323Z"}

Now you point your favourite browser to file:///<WHATEVER-YOUR-PATH-WAS>/feathersjs-offline/simple-example/public/index.html and you should be running.

You can open several windows if you want to see what happens when multiple clients operate at the same time both online and offline.

We presuppose you have npm and node installed otherwise you will have to install them before running the example.

License

Copyright (c) 2020

Licensed under the MIT license.

simple-example's People

Contributors

mhillerstrom avatar dependabot-preview[bot] avatar

Watchers

James Cloos 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.