2048
2048 copied to clipboard
Save ranking on a mysql database
Is there a way to optionally save the records to a mysql database?
No, if the hosting is to remain on GitHub that is.
Are you saying if a MySQL saves feature were added, GitHub would no longer host the project?
I think what @stuntguy3000 means is that, in order to save data to a MySQL (or any) database, your program needs a connection string for that database. However, storing connection strings in open-source repositories (like GitHub) is not at all secure, because now essentially anyone can connect to your database. Therefore, if rankings were to be stored in a database, then 2048's source code (or at least the connection string) would need to be moved off GitHub to a private repository.