Skip to content

Shre202002/kalamic.shop

Repository files navigation

Kalamic | Handcrafted Ceramic Artistry

NexGenShop (Kalamic) is a premium e-commerce platform for handcrafted ceramics, built with Next.js, Firebase, and MongoDB.

🛠 Authentication Setup (Firebase)

To ensure Phone Authentication works correctly, follow these steps in your Firebase Console:

1. Enable Phone Provider

  • Go to Authentication > Sign-in method.
  • Click Add new provider and select Phone.
  • Enable it and save.

2. Configure Authorized Domains

Add the following domains under Authentication > Settings > Authorized domains:

  • localhost
  • studio-6917027295-9c66e.firebaseapp.com
  • studio-6917027295-9c66e.web.app

3. Google Cloud Console (Redirect URIs)

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

💳 Payment Gateway (Cashfree)

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.


🚀 Getting Started

Development

npm run dev

AI Tools

To start Genkit for SEO content generation:

npm run genkit:dev

📂 Project Structure

  • src/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.

About

Production e-commerce platform for a ceramics brand — Cashfree payments, Firebase OTP auth, promo codes, ISR, blog CMS & admin dashboard. Built with Next.js 15 & MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages