NextGen Super Awesome Code Generator with magic link authentication.
- 🎨 Black & green terminal-inspired design
- ✉️ Magic link authentication (passwordless)
- 🚀 Built with Next.js 15 and TypeScript
- 💅 Styled with Tailwind CSS
- 📱 Fully responsive
npm installnpm run devOpen http://localhost:3000 to see the app.
Copy .env.example to .env.local and update the values:
cp .env.example .env.local/app- Next.js app directory/page.tsx- Landing page/signup/page.tsx- Signup page/dashboard/page.tsx- User dashboard/api/auth- Authentication API routes
/lib- Utility functionsdb.ts- Database operations (in-memory for demo)email.ts- Email sending utilities
/public- Static assets
- User enters email on signup page
- System generates unique token and sends magic link email
- User clicks link in email
- Token is verified and user is authenticated
- User is redirected to dashboard
SuperRichie is integrated with Mosaic Platform for production deployment, providing:
- PostgreSQL 17 database with pgvector
- S3-compatible storage
- Redis (Pro+ plans)
- User authentication
- Git hosting and auto-deploy
- Container deployment
# Set your Mosaic API key in .env.local
MOSAIC_API_KEY=mk_your_api_key
# Run setup to create project and initialize database
npm run setup-mosaicThis will:
- Create a Mosaic project with slug
superrichie - Provision a dedicated PostgreSQL database
- Initialize database schema (users, magic_link_tokens)
- Configure Git repository
- Set up deployment at
https://superrichie.mosaic.site
Option 1 - Via Git (recommended):
git push https://git.mosaic.site/[your-username]/superrichie.git mainOption 2 - Via Vercel:
npm install -g vercel
vercelMIT