Use latest store modules from npm Update README Update docs Update examples Update benchmarks Update dependencies Add Getting Started guide Add new a screenshot Add a new live demo Add persistency tests for snapshot saving/loading and events Add network stress tests (but skip them by default as they're very heavy and lengthy) Add browser benchmarks Add log() alias for eventlog() database Add possibility to create database if it doesn't exist yet Add support for orbitdb addresses Add a test for starting replication when peers connect Add debug build Use IPFS nodeID as default user id Use ipfs-pubsub-room Handle closing of databases properly Handle cache errors Clean up tests, re-organize code files Clean up code style Support for CLI Remove obsolete scripts
20 lines
540 B
JavaScript
20 lines
540 B
JavaScript
'use strict'
|
|
|
|
/*
|
|
This is the entry point for Webpack to build the bundle from.
|
|
We use the same example code as the html browser example,
|
|
but we inject the Node.js modules of OrbitDB and IPFS into
|
|
the example.
|
|
|
|
In the html example, IPFS and OrbitDB are loaded from the
|
|
minified distribution builds (in '../lib')
|
|
*/
|
|
|
|
const IPFS = require('ipfs')
|
|
const OrbitDB = require('../../../src/OrbitDB')
|
|
const example = require('../example')
|
|
|
|
// Call the start function and pass in the
|
|
// IPFS and OrbitDB modules
|
|
example(IPFS, OrbitDB)
|