benzend / goalboard-collab

0 stars 1 forks source link

Large refactor #33

Closed GwartneyDev closed 5 months ago

GwartneyDev commented 6 months ago

Still in the middle of the full refactor, I have the activity progress section complete, I just need to finish calling in the db query methods to finish looping through information.

Just still working my way through the goals file and then need to clean up the main file.

Take a look the Activity file first to get the best idea of how part of the refactor works. I also renamed a few folders to make more sense with the refactor. Feel free to make suggestions as to what i have done thus far.

Also you will see a file called helpermethods.go, for now this is where im placing alot of one off functions. I dont want this being a itnerface just yet that has to be implmented each time, as Im not sure if they will need to stay or not.

I also added in some extra custom error loging for our end, so in theory it will create time stamps in certain places you will see the method called something like utils.CreateServerErrorLog("serverLog.txt", timestamp), This calls another method in side the utlils file. Im still working on this as I needed to update another param, and i have this here for now. Will update this part last.

I should be able to get the rest of this wraped up tomorrow and be able to test all the end points. I just kept having to go back and forth so took me much longer than expected.