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

fix #34: Implement Login and Signup Functionality Updated #92

Conversation

priyanshuverma-dev
Copy link
Contributor

  1. Authjs
  2. Drizzle ORM
  3. Raw CSS
  4. Responsive
  5. nodemailer for otp...
  6. loading and redirection fixed

Demo Video

uttrakhand-culture-auth-demo.mp4

.env changes

DATABASE_URL=postgresql://db_owner:[email protected]/db?sslmode=require
AUTH_SECRET=adnaudbq981y0n209
SENDER_EMAIL=[email protected]
# only for test visit https://ethereal.email and make
MAIL_SERVER_HOST=smtp.ethereal.email 
MAIL_SERVER_USER=[email protected]
MAIL_SERVER_PASS=mhKJPGwusJtdtbcwBQ

To setup Email SMTP

As In my testing OTP is working just fine

To setup Database

firstly generate and run migrations

npx drizzle-kit generate

Then

npx drizzle-kit migrate 

Copy link

vercel bot commented Oct 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
uttarakhand-culture ❌ Failed (Inspect) Oct 6, 2024 4:29am

@ajaynegi45
Copy link
Owner

  1. Authjs
  2. Drizzle ORM
  3. Raw CSS
  4. Responsive
  5. nodemailer for otp...
  6. loading and redirection fixed

Demo Video

uttrakhand-culture-auth-demo.mp4

.env changes

DATABASE_URL=postgresql://db_owner:[email protected]/db?sslmode=require
AUTH_SECRET=adnaudbq981y0n209
SENDER_EMAIL=[email protected]
# only for test visit https://ethereal.email and make
MAIL_SERVER_HOST=smtp.ethereal.email 
MAIL_SERVER_USER=[email protected]
MAIL_SERVER_PASS=mhKJPGwusJtdtbcwBQ

To setup Email SMTP

As In my testing OTP is working just fine

To setup Database

firstly generate and run migrations

npx drizzle-kit generate

Then

npx drizzle-kit migrate 

Cannot understand the logic from demo video. On click "Read more" redirect to login.

@priyanshuverma-dev
Copy link
Contributor Author

priyanshuverma-dev commented Oct 7, 2024

@ajaynegi45 Hello Sir,

Cannot understand the logic from demo video. On click "Read more" redirect to login.

It is a private route that's why redirected to /login
we can add it to public route by just added in the list inside routes.ts

Copy link
Owner

@ajaynegi45 ajaynegi45 left a comment

Choose a reason for hiding this comment

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

Hi @priyanshuverma-dev,

Thank you for your prompt work on this issue. I appreciate your dedication to the project.

I have reviewed your work, and I need some changes.

  • On click on logout button it redirect to hardcode url http://localhost:3000/
  • On click on Read more button it redirect to login button.
  • Resolve these issue fast then I will merge it into codebase

Once again, thank you for your contribution! ❤️

@ajaynegi45 ajaynegi45 closed this Oct 8, 2024
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