I have tried using example projects linked to in t...
# help
t
I have tried using example projects linked to in the documentation, but each one is written differently and requires customization and never ends up working.
f
what do you mean with that you can never get any results? When you use createClient and enter your supabaseUrl and supabaseKey and then fetch something. what does happen?
It would be also great if you could share either the codesandbox or some screenshots of the code at least
t
I am presently creating a minimal example to use for getting help
s
Share your codesandbox and it will be easier to help that way, you should remove your supabaseUrl and supabaseKey before sharing it
j
@User which example are you referring to?
t
I start at https://supabase.io/docs/guides/examples and I see Supabase + Next.js (Next.js Starter Kit) Github I follow the link to https://github.com/one-aalam/next-starter-kit/tree/auth-supabase It says nothing about setting things up. I see
.env.sample
so I figure I need to make
.env
and use my info. But info from what? I don't have a project set up for this. There are no instructions on running some SQL command to create the necessary stuff. There is no CSV file to import. Etc. So, using this as an example of my frustration, I have no idea how to even use this as "an example" of how to create a Next.js app.
What I am looking for, and cannot find, is a example that uses Supabase as the database and React or Next.js as the frontend. I need it to demo CRUD on that.
I have not yet taken the time required to actually "learn" TypeScript. But I am a polyglot programmer and can kinda figure it out.
So, this isn't helpful
s
You still haven't provided a codesandbox example, you are asking for someone to help you with something but you aren't providing adequate information to get help.
t
Overcome by events at work. They have given me tomorrow to work on it. I am at home now and am going to put together a sandbox example.
I don't know how, but I overlooked this. Let me try this first, before I bug you folks. https://github.com/supabase/supabase/tree/master/examples/nextjs-todo-list
I have gotten this example to work. I had to figure out that I need to set things up for Auth with the specific hostname of my test server (on codesandbox.io). I already knew I had to set the
.env
file up for my app.
Now I am going to load up my actual project and try to apply what is in this example. I am both upset that I overlooked this example, and relieved that I eventually noticed it and got it working.