NexGenShop (Kalamic) is a premium e-commerce platform for handcrafted ceramics, built with Next.js, Firebase, and MongoDB.
To ensure Phone Authentication works correctly, follow these steps in your Firebase Console:
- Go to Authentication > Sign-in method.
- Click Add new provider and select Phone.
- Enable it and save.
Add the following domains under Authentication > Settings > Authorized domains:
localhoststudio-6917027295-9c66e.firebaseapp.comstudio-6917027295-9c66e.web.app
If you are managing the OAuth Client ID in the Google Cloud Console, add this to your Authorized redirect URIs:
https://studio-6917027295-9c66e.firebaseapp.com/__/auth/handler
To enable real payments, add these variables to your .env file:
CASHFREE_APP_ID=your_app_id
CASHFREE_SECRET_KEY=your_secret_key
CASHFREE_ENV=sandbox # or 'production'Note: If these are missing, the app will run in Mock Mode for safe testing.
npm run devTo start Genkit for SEO content generation:
npm run genkit:devsrc/app: Next.js App Router pages.src/components: Reusable UI components (ShadCN).src/firebase: Client-side Firebase configuration and hooks.src/lib/actions: Server-side logic for MongoDB operations and payment handling.src/lib/models: Mongoose schemas for MongoDB.