ggneilc / stat-tracker

Health & Fitness Tracker designed to gamify life to increase motivation, written in react native
0 stars 0 forks source link

Flush out CRUD operations for Stat Entries, Users, Day #2

Closed ggneilc closed 1 year ago

ggneilc commented 1 year ago

I know how to do CRUD operations with Users, but we need special ones for Linking each stat entry to a particular day, as well as handling days.

ggneilc commented 1 year ago

Ok, so to start: We need a way to authenticate a user and enables sessions, so that we can continually retrieve the signed in users information. So right now we will work towards narrowing our functions down:

For the User

To accomplish this, we are going to use the gorilla library and their sessions package.

ggneilc commented 1 year ago

current dilemma: implementing gorilla library uses the standard go 'net/http' library which isn't directly compatible with gofibers Fasthttp. We have two options:

I will decide what to use after trying to find a video of gorilla/gofiber working together to see how much effort/overhead it is

ggneilc commented 1 year ago

turns out fiber just also implements sessions and i didn't see it initially on their documentation...