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

[WS] 1 Supabase Set-Up and Web Scraper Research #3

Merged
merged 12 commits into from
Oct 8, 2024
Merged

Conversation

deenasun
Copy link
Collaborator

@deenasun deenasun commented Oct 5, 2024

🗽 What's new in this PR

Description

Created src/queries/query.ts

  • Initialized supabase client
  • Wrote query function to fetch Projects from supabase api

Created app/testing/page.tsx

  • Testing page for supabase queries
  • useState and useEffect functions to fetch backend data and rerender screen with fetched projects
  • Project interface with fields of fetched project data

Screenshots

ace-ny.sprint.1.demo.100524.mp4

How to review

First, review the supabase client setup and fetch query functions in src/queries/query.ts

Testing
Standard procedure

git fetch origin deenasun/branch1
git checkout deenasun/branch1

Navigate to the following url:

  • /testing

You should see the fetched queries show up on your screen after loading!

Next steps

Relevant links

Online sources

Related PRs

CC: @itsliterallymonique

@itsliterallymonique
Copy link
Collaborator

Thanks for finishing your sprint so fast Deena! Could you re-format the queries and folder nesting to be supabase folder >> queries folder. Then you will connect the client will be under the supabase folder called createClient.ts . Your actual query will be inside the queries folder (your current file name is fine for now!

You can use IJP as an example: https://github.com/calblueprint/immigration-justice-project/tree/main/src/api/supabase .

Let me know if you have any questions!

Copy link
Collaborator

@itsliterallymonique itsliterallymonique left a comment

Choose a reason for hiding this comment

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

Awesome Deena!

@deenasun deenasun merged commit e04f25e into main Oct 8, 2024
2 checks passed
@deenasun deenasun deleted the deenasun/branch1 branch November 8, 2024 04:41
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