Gonna overhaul the codebase completely. Didn't realize how freaking hard maintaining code that interacts with a database and files is without a proper backend. Probably gonna port a lot of features over to Node.js. Here are the planned features:
- User management with email + password. Use passport.js?
- Proper API for querying Smashers and users and interacting with Firebase. Thinking that all writes should come from the server.
- Extensible for future tournaments. Maybe store player data in Firebase instead of in JSON.