Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database not updated #8

Open
aminov-jp opened this issue Aug 1, 2021 · 0 comments
Open

Database not updated #8

aminov-jp opened this issue Aug 1, 2021 · 0 comments

Comments

@aminov-jp
Copy link

node : v14.17.0
os : windows

  • create a node project
  • install depndencies : npm install gun gun-mongo
  • create index.js
const http = require('http');
const Gun = require('gun');
require('gun-mongo');
let server  = http.createServer()
server.listen(3000)
// Instantiate Gun
var gun = Gun({
    web: server,
    mongo: {
        host: '127.0.0.1',
        port: '27017',
        username: 'gunuser',
        password: 'password',
        database: 'gundb',
        collection: 'guncollection',
        query: ''
    }
});

  • start the node server node index.js

Actual behavior : Files created under radata

Excepted Behavior : mongo DB is updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant