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 8 months ago

ggneilc commented 8 months 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 8 months 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 8 months 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 8 months ago

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