Coder Social home page Coder Social logo

kacesensitive / driftdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamsocket/driftdb

0.0 0.0 0.0 9.7 MB

A real-time data backend for browser-based applications.

Home Page: https://driftdb.com

License: MIT License

Shell 0.58% JavaScript 8.41% Rust 33.55% TypeScript 56.56% CSS 0.15% Dockerfile 0.76%

driftdb's Introduction

DriftDB

GitHub Repo stars crates.io docs.rs docs.rs Test Chat on Discord

DriftDB is a real-time data backend for browser-based applications.

For more information, see driftdb.com.

Local Development

TypeScript libraries

To prepare the environment, install the dependencies and run a turborepo build:

# from repo root
cd js-pkg
npm i
npm run build

To run demos, run:

# from repo root
cd js-pkg/apps/demos
npm run dev

To test the TypeScript libraries, first run a local development server:

# from repo root
cargo run -p driftdb-server

Then, with the local development server running:

# from repo root
cd js-pkg/apps/tests
npm test

Server

Server development requires the Rust toolchain (including cargo) to be installed. Developing and deploying the driftdb-worker (Cloudflare worker) also requires Cloudflare's Wrangler tool.

To run tests:

# from repo root
cargo test

To run a local development server:

cargo run -p driftdb-server

For instructions on driftdb-worker, see driftdb-worker/README.md.

Structure of this repo

  • docs/: main online documentation and website for driftdb, available on the web at driftdb.com.
  • driftdb/: core Rust driftdb implementation.
  • driftdb-server/: Rust crate of driftdb dev server.
  • driftdb-worker/: driftdb implementation on Cloudflare Workers.
  • js-pkg/: JavaScript package root (turborepo monorepo).
    • apps/demos/: next.js project containing several demos, available on the web at demos.driftdb.com.
    • packages/driftdb/: JavaScript client library for driftdb.
    • packages/driftdb-react/: Higher-level React hook-based interface to driftdb.
    • packages/driftdb-ui/: React-based debug UI for driftdb, available on the web at ui.driftdb.com.

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.