Comments (2)
interested to know a solution to this as well!! Having the same issue!
from hoodie.
I think this will solve the above error
'use strict';
const Hapi = require('@hapi/hapi');
const hoodie = require('hoodie');
const PouchDB = require('pouchdb-core')
.plugin(require('pouchdb-mapreduce'))
.plugin(require('pouchdb-adapter-memory'));
const init = async () => {
const server = Hapi.server({
port: 3000,
host: 'localhost'
});
await server.register({
plugin: hoodie.plugin,
options: {
inMemory: true,
public: 'public',
data: '.hoodie',
PouchDB
}
});
await server.start();
console.log('Server running on %s', server.info.uri);
};
process.on('unhandledRejection', (err) => {
console.log(err);
process.exit(1);
});
init();
from hoodie.
Related Issues (20)
- share data between users and groups HOT 1
- Hapi deprecation warnings
- npm start command fails HOT 3
- Unable to store data on CouchDB v2.2.0 HOT 3
- `options.account` and `options.store` not passed to hoodie-server
- Some question about hoodie HOT 1
- Compatible pouchdb-Browser versions HOT 10
- Keep items in local IndexedDb after signOut HOT 3
- store.findAll() return deleted items if pouchdb-browser is initialized with a low “revs_limit” and “auto_compaction: true”
- any plan for php port of the backend ? HOT 4
- Project status? HOT 8
- Good code HOT 1
- Website is down HOT 5
- Site down
- Image elements do not have [alt] attributes HOT 5
- improve UI HOT 3
- Hoodie Chat Link is broken on CONTRIBUTING.MD HOT 2
- Project Status / Maintenance HOT 6
- [Bug]: Different cursor on different buttons on landing page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hoodie.