100 Days of Code Day 89
Today’s exercise was REST API which was to build up a fake rest API for IOUs between friends. Kind of spooky since I am working on one for the project part too. Fussy and long. Mine is twice as long as the competition. Of course it didn’t help they mandated iou users returned in alphabetical order by name. I also did far more error checking. So maybe mine isn’t so bad. Nine Javascript exercises left.
Don’t expect too much more today I am SICK. Scratchy throat, runny nose, body aches, the works. I did however migrate the code from hard coded SQL statement to use GORM. The no record found error is different between GORM and the normal SQL driver. Figuring out I needed to capitalize product to make it accessible by the test suite was very slow and annoying. I should probably work on authentication next. I want signup, login, and logout endpoints. I also want JWT tokens. Most endpoints should refuse service if not presented.
For future planning:
- I saw the youtuber I was watching had a tutorial for generating PDFs from go. I might want to use that for the eventual reports. Maybe I should use the D3.js library I tried out in freecodecamp.org a few years back for the Javascript side of reports.
- I also want some bulk importers for the tests when I get that far (just CSV, nothing too fancy).
