Giter Site home page Giter Site logo

alterclassio / supa-vacation Goto Github PK

View Code? Open in Web Editor NEW
114.0 114.0 73.0 1.8 MB

Build a FullStack App with Next.js, Supabase & Prisma | The Modern Dev

Home Page: https://supa-vacation.vercel.app/

License: MIT License

JavaScript 69.31% CSS 0.08% Shell 0.28% HTML 30.32%
alterclass alterclass-app fullstack javascript nextjs prisma react supabase

supa-vacation's People

Contributors

gdangelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

supa-vacation's Issues

nextauth and email login

I'm not sure if it's due to an error in my env variables, or something else. Here is the error I am getting when I try to sign up or login with email.

error - unhandledRejection: Error: 4381894144:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332

EDIT + DELETE buttons showing on every home

Edit and Delete buttons are showing up on every home.

According to the code session?.user.id is being compared with home owner's id.

But the problem is that session user doesn't have an id. It only has:

  • email
  • image
  • name

Is it just me?

Wrong code fetching owner

This code is wrong:
const owner = await axios.get(/api/homes/${home.id}/owner);

It should be replaced with:
const { data } = await axios.get(/api/homes/${home.id}/owner);

And then you get the owner email by data?.owner.email

errors#client_fetch_error undefined

Tried all solutions mentioned everywhere: 1) […nextauth].js with secret: process.env.NEXTAUTH_SECRET, 2) strategy: 'jwt' or 'database', 3) config password application, 4) solutions here https://dev.to/brokylabs/next-autherrorclientfetcherror-2m8e ... and more. Still having 'Unable to submit' message when trying to list a home:
[next-auth][error][CLIENT_FETCH_ERROR]
https://next-auth.js.org/errors#client_fetch_error undefined {
error: {},
url: 'http://localhost:3000/api/auth/session',
message: undefined
}
Thanks for any support

Can you help me about Relationship Favorite?

Hi my friend... can you tell me about Relationship to create Favorite page. I need understood how gonna be...

I trie favoriteHomes Homes[] but the VSCODE said: There are another relationship using Homes[].

Thanks... i need understood about this :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.