jjfantini / stack-test

a test repo for appseed to test setting up session management w next.js and supabase
0 stars 0 forks source link

Setup #1

Open jjfantini opened 7 months ago

jjfantini commented 7 months ago

Hey @kimsohyuncans,

How is everything going?

kimsohyuncans commented 7 months ago

I have pushed the changes made on the 'setup-with-fastapi' branch. As part of these changes, I created a new directory named 'fast-api' in the root path. This new directory contains the backend code, and you can find the backend setup instructions in the 'fast-api/README.md' file. this is the .env file that I used

SUPABASE_URL=https://lixjicazrywvgyapdwpa.supabase.co
SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImxpeGppY2F6cnl3dmd5YXBkd3BhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTI2OTI3NjYsImV4cCI6MjAyODI2ODc2Nn0.R-IfPDdO3OsRIMMovvOs00kUStWAgo6MGvyzVQ5kWi8

From now on, Next.js will communicate with the 'fast-api' to retrieve and authenticate data from Supabase. On the frontend side, I made a small change related to the fetching method. I switched from using Supabase to using the fastapi endpoint. please make sure .env file in the frontend pointed to fast-api endpoint @app-generator @jjfantini

app-generator commented 7 months ago

great @kimsohyuncans ty!