Dannark / BWO

An infinity procedural online game using Flutter with NodeJS and flames
https://borderless-world.herokuapp.com/
GNU General Public License v3.0
387 stars 43 forks source link

is it possible to change the firebase database to local database eg:mysql??? #3

Open diybl opened 4 years ago

Dannark commented 4 years ago

is it possible to change the firebase database to local

Yes, you can use other Non-Relational databases, like MongoDB, or just save all the states in a file. In fact, there is already an example done in the folder bwo-server\resources\data\ you have local_storage.js and firebase_storage.js, just follow the model and make your own.

eg:mysql?

Firebase is a NoSQL which means it is a non-relational database so it is very different than MySQL, still, It would be possible but you will have to change a bit the code implementations.

diybl commented 4 years ago

thanks, i will try it~~

diybl commented 4 years ago

is it possible to change the firebase database to local

Yes, you can use other Non-Relational databases, like MongoDB, or just save all the states in a file. In fact, there is already an example done in the folder bwo-server\resources\data\ you have local_storage.js and firebase_storage.js, just follow the model and make your own.

eg:mysql?

Firebase is a NoSQL which means it is a non-relational database so it is very different than MySQL, still, It would be possible but you will have to change a bit the code implementations.

is there any mangodb interface???

Dannark commented 4 years ago

Sorry, there isn't, but perhaps, that might be a nice feature to have.