Skip to content

Mahambabar12/Hackathon-Ecommerce-Website-main

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Firebase Setup

  1. This project uses Firebase Authentication (email/password) and Firestore to store user profiles.

  2. Create a Firebase project at Firebase Console.

  3. Enable Authentication: Go to Authentication → Sign-in method → Email/Password and enable it.

  4. Enable Firestore: Create a collection named users to store user profiles.

  5. Add Firebase config to .env:

NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id
  1. Install Firebase SDK
npm install firebase

The app automatically handles sign-up, login, and profile creation in Firestore.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

📜 Code of Conduct

We expect all contributors to follow our Code of Conduct to ensure a welcoming and respectful environment for everyone.

Releases

No releases published

Packages

 
 
 

Contributors