How do I data store with Flat File DB or firebase?

Dasfk
Joined 06/11/2020
Posts 28
09:11 PM 05/02/2023
Can someone help me with some script I pay 15 bucks


[RWB] MixaMega
Joined 23/12/2019
Posts 435
Moderator
03:21 PM 06/02/2023
or you hosting yourself or using a hosting service such as brickhosting, mixahosting or dedicated hosting?


Dasfk
Joined 06/11/2020
Posts 28
04:20 PM 06/02/2023
Vps hosting


dargy
Joined 23/06/2019
Posts 4,820
06:43 PM 06/02/2023
Yes, and no. If you are using a hosting seevice such as MixaHosting or Brick Hosting then they most likely have a module you can use to store your data but wont allow you to ultimately use npm packages or make ferch requests due to security reasons. Check with their discord to see what options they have for you.

If you are self-hosting then you could add a module using getModule and log into Firebase or MongoDB using an npm module. You can then store data in there.

Hope this helps! Ask in the Node Hill discord if you need any more help.


Dasfk
Joined 06/11/2020
Posts 28
08:50 PM 06/02/2023
Oh so practically I just get the module and thats it? No need for any code.


dargy
Joined 23/06/2019
Posts 4,820
03:44 AM 07/02/2023
Quote from Dasfk , 08:50 PM 06/02/2023
Oh so practically I just get the module and thats it? No need for any code.
Sorry for taking a long time to respond!

You need to script the database into your project, there is no way of adding a database without adding a script to the game.

Check node-hill documentation or discord on how to add a module to your game.

For Firebase, I advise you to use this package: https://www.npmjs.com/package/firebase


Dasfk
Joined 06/11/2020
Posts 28
05:39 AM 07/02/2023
Hmm ok thanks

1