Closed GwartneyDev closed 6 months ago
Added file reader in to parse .env file to keep db information secret for when project is actually hosted.
Tested db connection and did some testing on the front end to make sure cors was enabled.
Note that in the back end create users file there is a test funciton func enableCorsAgain(w http.ResponseWriter) { (w).Header().Set("Access-Control-Allow-Origin", "*") }
This will be removed as its just a copy paste for now I need to start splitting things up into util functions to be used across the code base.
However when I just routed it back to the main login page, it was throwing an error that I have created an issue with a screen shot for you to look at as I was uanble to see where this might be happening my self. And just need someone to take a seconded look.
I have began adding in DB quires for create goals file. I have not been able to run and test this yet. I have also am almost done getting the .env file set up i just need to read the values back into the code once its created. I also needed to note that im setting this in a .env file like other frameworks in JS and PHP do. As other tools use the go env. Which we can swap to but I feel like its easier to know what to modify and change directly since we can just do a git ignore ect.
I will finish testing the rest of this later today.