Skip to content

Comments

Statistics Backend#15

Open
aneeshb7 wants to merge 3 commits intomainfrom
aneeshb7-patch-1
Open

Statistics Backend#15
aneeshb7 wants to merge 3 commits intomainfrom
aneeshb7-patch-1

Conversation

@aneeshb7
Copy link
Collaborator

@aneeshb7 aneeshb7 commented Feb 10, 2024

Wrote functions to interact with supabase db in app/statistics folder, and created handlers as per Next.js convention in the new app/pages/api folder.

Ran npm run lint, no errors

@aneeshb7 aneeshb7 requested a review from adipoluri February 10, 2024 06:38
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message that will be displayed on users' first pull request

@adipoluri
Copy link
Collaborator

Just scanned through and it Look good. However I just wanted to mention that NextJS 13 offers a new form of routing called app routing which we are using (vs. pages routing). When u look at the docs just make sure you are set to the app router docs. because of this, api functions are handled a little differently, check out this page in the docs https://nextjs.org/docs/app/building-your-application/routing/route-handlers.

@adipoluri
Copy link
Collaborator

Ill also add some dummy users and fake stats to play around with.

@aneeshb7 aneeshb7 marked this pull request as ready for review February 24, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants