Brief
I have previously written an application as a personal project. It is a hot, unmaintainable mess that does not meet coding standards. I am hoping devember will give me the motivation to rewrite it better.
Status quo
Over the summer I have written an application to help calculate the payouts of the poker sessions among our buddies. Whenever we play, we each give a small amount in a shared pot. Usually, third place will get their money back, second place doubles it and first gets the rest. What my application does is tell you the most efficient way of who has to pay whom. To further complicate this matter, we have a house rule that states that whenever someone wins with a 2-7 hand (the weakest hand in Texas Hold-em) everybody still posessing chips (regardless of wether they have folded or not) has to pay them 1 buck. So my application needs to keep track of who has scored a 2-7 win and who was still in play at that point in the game.
As a challenge to myself I have written the Backend in NodeJS with a MongoDB persistancy and a React frontend (my native language is Java).
What I want to achieve
Backend:
- Correct use of modules
- Split the functionality among more files
Frontend
- Switch from Class component to functional components
- Switch from using the state object to using state hooks
- make each screen their own component
- fix this one weird issue where previous entries in a textbox persists, that is currently sulved with a hard reload
Deployment
- Deploy the whole application with Docker-compose
- give more options be configurable via Docker env variables
- Secure the traffic with SSL
I dont know if this undertaking is in the spirit of devember, so please let me know!