Admin Login

The last couple of days have been quiet successful. People with admin accounts can log into the backend of the site and once they do they actually see something. Its actually quiet good looking. Designwise probably my life-time best work, so far. But it does not just look good. It has some first functions aswell. One entry in the navigation says ‘Games’ and once you click on it you see all the recent games which have not updated scoreboard yet. With the next click you see a form in which you can put the points both teams made and save it. So far so good.

Learning curve

I am a java dev. I have never worked with react or nextjs in a professional environment. Everything I know I taught myself or found out the hard way. Learning while doing is my way, but it comes with a price. The price being, that sometimes you refactor the same code over and over again. Cause sometimes the result does not satisfy you or you learned something new or nextjs doesnt like your aproach and throws some warnings. Just now, I realized that all my requests are client-side, but preferably most of them should be server-side. If I am really honest, it was today, when I finally fully understood when nextjs does one or the other. When I now try to change the implementation, the api service causes problems, because it wants absolut path instead of relative ones. But then I have rewrite rules in place, so that it does not really make sense to use absolut path. And another question I could not fully answer: Do I have to have two api service instances from now on? - one for client side and one for server side? The deeper I get into the details of my project, the more of those kinda topics come to light. The last two days have been hard. The application still looks the same and does the same, just plenty of changes under the hood and a lot of mess where created.

Lets hope that the next days create more visible progress.