Punarchakra banner

Punarchakra

2 devlogs
11h 8m 45s

Turn Your Old Tech
into New Possibilities.
Locate a smart bin, deposit e-waste with AI-powered ease, and earn real rewards. Simple. Secure. Sustainable.
First SignUp Then SignIn else How It Will Work Sir
And If Sign In Takes Time Wait For Back…

Turn Your Old Tech
into New Possibilities.
Locate a smart bin, deposit e-waste with AI-powered ease, and earn real rewards. Simple. Secure. Sustainable.
First SignUp Then SignIn else How It Will Work Sir
And If Sign In Takes Time Wait For Backend Data To Load(Backend is On render)

This project uses AI

Used GitHub Copilot: For Ui/Ux, Code Debugging && /Deployment SignIn Error Fix!!
Also For: README.md

Demo Repository

Loading README...

Alpha Coder

Work On Authentication
And Major Ui Improvements
As Well As responsive Devices Done
Mostly Like Tabs

Attachment
1

Comments

christoherhakimi
christoherhakimi about 1 month ago

Good work, keep it up! It’s great to see the progress and dedication.

Alpha Coder

Shipped this project!

Hours: 9.77
Cookies: 🍪 40
Multiplier: 4.11 cookies/hr

Shiping This Project For First Time
SO user Can tell ME the chanegs i need to do
bcs some part we have mock data

Alpha Coder

Punarchakra - Project Summary
Punarchakra is a Smart E-Waste Management System with a Next.js frontend (Vercel) and Express/MongoDB backend (Render). It features AI-powered waste detection, QR code login for kiosks, rewards/gamification, and push notifications.

The Deployment Struggles
I faced a persistent “Failed to fetch” NextAuth error that took several debugging iterations to solve:

Environment Variables: NextAuth v5 requires AUTH_SECRET (not NEXTAUTH_SECRET) and AUTH_TRUST_HOST=true.
Conditional Google OAuth: Made Google login optional to prevent crashes when credentials are invalid.
The Real Culprit: A rewrite rule in
vercel.json
was redirecting ALL /api/* requests to an external URL, including the NextAuth routes that needed to stay on Vercel!
Lesson learned: Always check your routing configuration when API routes mysteriously fail - rewrites can silently break your authentication flow.

Attachment
0