Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics Backend #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Statistics Backend #15

wants to merge 3 commits into from

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

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