100 Days of Code Day 87
Today’s exercise was Tournament. Take in matches in semi colon delimited format (Team A, Team B, win/lose/draw) with matches delimited by line breaks. Then write it out the results in a fixed width grid with Team Name, Matches Played, Wins, Losses, Draws, and Points (3 for a win, 1 for a draw). It wasn’t really hard but it was really fussy.
I think I will start the REST API using this tutorial: https://semaphore.io/community/tutorials/building-and-testing-a-rest-api-in-go-with-gorilla-mux-and-postgresql. I will try to mutate it into something like what I want when it is done.
I did have a few problems such as trying to get pgAdmin running from the raspberry pi home server I have. I also needed to add the host to the connection string in the code or it won’t login. I also had to really add the environment variables (I wanted them temporary). I may have been able to add them, then launch the VS code. I did have to restart VS code anyway.
So far I got done adding a bunch of test cases. I will continue from the section “Adding Application Functionality” tomorrow if I have time.
The tutorial had me start a git repository right away, not sure where I will put the web app part when the time comes.
