Open bitdom8 opened 2 years ago
Thanks @amark . Changed the server here https://github.com/amark/gun/blob/master/examples/express.js as this:
// // const express = require('express')
// // const Gun = require('gun')
// import express from 'express';
// import Gun from 'gun'
// // import Axe from 'gun'
// const app = express()
// const app2 = express()
// const port = 8765
// // const port2 = 8766
// // const port2 = 8768
// const ip = "127.0.0.1"
// // const ip = "0.0.0.0"
// // const ip = "91.91.91.91"
// // const ip2 = "127.0.0.1"
// app.use(Gun.serve)
// // app2.use(Gun.serve)
// const server = app.listen(port, ip, () => {
// console.log("Listening at: http://" + ip + ":" + port)
// })
// // const server2 = app2.listen(port2, ip2, () => {
// // console.log("Listening at: http://" + ip2 + ":" + port2)
// // })
// const router = express.Router();
// app.use('/n/', router);
// router.get("/webhook", function (req, res) {
// res.send("Welcome to the Webhooks API, please contact https://t.me/bitfinicon for 1$ webhooks");
// });
// // Gun({web: server2})
// Gun({web: server})
//above code not works
//The below vode works
console.log("If module not found, install express globally `npm i express -g`!");
var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 8765;
// var express = require('express');
import express from 'express';
// var Gun = require('..');
import Gun from 'gun'
// require('../axe');
import "gun/axe.js"
import path from 'path'
import {fileURLToPath} from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
var app = express();
app.use(Gun.serve);
app.use(express.static(__dirname));
var server = app.listen(port);
var gun = Gun({ file: 'data', web: server });
global.Gun = Gun; /// make global to `node --inspect` - debug only
global.gun = gun; /// make global to `node --inspect` - debug only
console.log('Server started on port ' + port + ' with /gun');
@bitdom8 Are you still experiencing an issue?
Really tired of lack of doc and bad website design of gundb. Switched to surrealdb thanks @imizaac
@bitdom8 you know there's this cool thing called "Open Source" where people can donate money or volunteer time contributing to something?
@amark was gonna share my process. Normally we try and find by time but you refer people to outside of index github to gitter gundb or sth like that. Also people use cellphones it's not mobile friendly, your website https://gun.eco/docs/
@bitdom8 All of the documentation is available on the Wiki on GitHub, which also feeds the website. The gitter chat is quite active compared to other p2p tech stacks' communities. I've personally helped build parts of Gun with @amark, am active there and happy to help when/where I can.
Thanks @draeder gitter is not user friendly. Also our problems didn't go away when we tried many approaches. Asked there but gitter is like a flowing river, you can't really catch any info among many infos. Not well structured
I disagree. I had the opposite experience — Ian Gordon
On Sat, Aug 12, 2023 at 1:37 PM bitfinicon.com @.***> wrote:
Thanks @draeder https://github.com/draeder gitter is not user friendly. Also our problems didn't go away when we tried many approaches. Asked there but gitter is like a flowing river, you can't really catch any info among many infos. Not well structured
— Reply to this email directly, view it on GitHub https://github.com/amark/gun/issues/1260#issuecomment-1676091502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7A7TXOCSCA6F2NLUBLSTTXU7SSDANCNFSM53KM64QA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'd be a fan of the project using more ubiquitous communication platforms. Like discord. It isn't a perfect platform, but it is where people are. Asking people to go out of their way for product support is likely to increase bounce rate as we're seeing in this case.
@bitdom8 Looking over the surrealDB docs I can't tell if they have similar offering characteristics. Is surrealDB able to shard data across the user base or are you hosting database nodes?
On the same page @imizaac @amark . Telegram would be also better. Who know what gitter chat is really.
Surrealdb has different approach. You use database nodes and namesheets. It's website is mobile friendly at least
Hi @amark thanks for the great repo. Using the latest sveltekit which uses vite bundle kit. It works with http://127.0.0.1:8765/gun but not on my VPS like hostup. How can we tackle this?
Note: my IP is not exposed.