Closed peppewarrior1 closed 1 year ago
After you install mongodb via npm install mongodb
, remove the first line and add this instead, then try again:
let mongo = require('mongodb');
let MongoClient = mongo.MongoClient;
After you install mongodb via
npm install mongodb
, remove the first line and add this instead, then try again:let mongo = require('mongodb'); let MongoClient = mongo.MongoClient;
Locally I can't install mongodb. (By local I mean this: https://www.haxball.com/headless)
You cannot use MongoDB directly in the browser. You need to use it in Node.js
You can use firebase instead of MongoDB, it works in the browser and Node.js.
You cannot use MongoDB directly in the browser. You need to use it in Node.js
Another solutions:
- Use Browserify to run NPM packages in the browser
You can use firebase instead of MongoDB, it works in the browser and Node.js.
Is there a solution to use it in a vps with haxroomie?
I decided that I will use browserify but not finding anything specifically for haxball I would like to know where to find tutorials that help you step by step whether you want to host locally or with VPS via haxroomie. If someone wants to help me explaining step by step I'd be really happy <3
@furkanardagul @thenorthstar
@furkanardagul @thenorthstar
@peppewarrior1 Could you stop pinging me in all the issues which you contributed in please? Others are already trying to help you.
For Turkish:
Eğer iletişime geçersen ücretli destek verebilirim. Furkans#9603
For English:
If you contact me I can give passable support. Furkans#9603
Per il turco:
Eğer iletişime geçersen ücretli destek verebilirim. Furkan#9603
Per l'inglese:
Se mi contatti posso dare un discreto supporto. Furkan#9603
I can't contact you if you don't accept my friend request.... I'm LyuSkiy#3882
Hi everyone. I'm trying to connect mongodb to my haxball room script but I'm having enough problems. To try out the various features that mongodb can offer I put it up with some test code:
I get this error when I try to host locally:
How do I solve? I would need a solution for both localhost and vps (using haxroomie).