Velvet and Whisks is a milk-product-based commercial website offering a variety of fresh, quality milk products, from single-can & bottle milk to bulk supplies. Customers can browse our curated selection, add products to their cart, and seamlessly check out using our secure payment system.
- Product Catalog: Browse single-can/bottle and bulk milk products.
- User Authentication: Google OAuth login for secure access.
- Cart Management: Add items to the cart, adjust quantities, and view the total.
- Checkout and Payment: Secure payment processing through Razorpay.
- Email Confirmation: Order details sent to the user’s email after payment.
- Role-Based Access: Admin panel for managing products and user permissions.
- Frontend: React, Figma for design, CSS for styling
- Backend: Express, firebase
- Authentication: Google OAuth
- Payment Gateway: Razorpay
- Email Service: Nodemailer (for sending order confirmations)
-
Clone the repository:
git clone https://github.com/yourusername/velvet-and-whisks.git cd velvet-and-whisks -
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.envfile and add:MONGODB_URI=your_mongodb_uri GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret RAZORPAY_KEY_ID=your_razorpay_key_id RAZORPAY_SECRET=your_razorpay_secret EMAIL_HOST=your_email_host EMAIL_PORT=your_email_port EMAIL_USER=your_email_username EMAIL_PASS=your_email_password
- Create a
-
Start the development server:
npm run dev
-
Visit
http://localhost:3000to view the site.
- Login: Use Google OAuth to log in.
- Browse Products: Check out single and bulk milk options.
- Cart Management: Add items, adjust quantities, and proceed to checkout.
- Checkout and Payment: Use Razorpay for secure payment processing.
- Email Confirmation: Receive order confirmation details in your email inbox.
velvet-and-whisks/
├── src/
│ ├── components/ # Reusable components like Navbar, Footer, ProductCard
│ ├── pages/ # Main pages like Home, About, BrowseMenu
│ ├── services/ # Services for handling API calls, authentication, etc.
│ ├── utils/ # Helper functions and constants
│ └── App.js # Main application component
├── public/ # Public files (e.g., images, icons)
├── .env # Environment variables
├── README.md # Project documentation
└── package.json # Project metadata and dependencies
This project is licensed under the MIT License - see the LICENSE file for details.
Here's a README file for your Velvet and Whisks website:
Velvet and Whisks is a milk-product-based commercial website offering a variety of fresh, quality milk products, from single-can & bottle milk to bulk supplies. Customers can browse our curated selection, add products to their cart, and seamlessly check out using our secure payment system.
- Product Catalog: Browse single-can/bottle and bulk milk products.
- User Authentication: Google OAuth login for secure access.
- Cart Management: Add items to the cart, adjust quantities, and view the total.
- Checkout and Payment: Secure payment processing through Razorpay.
- Email Confirmation: Order details sent to the user’s email after payment.
- Role-Based Access: Admin panel for managing products and user permissions.
- Frontend: React, Figma for design, CSS for styling
- Backend: Node.js, Express, MongoDB
- Authentication: Google OAuth
- Payment Gateway: Razorpay
- Email Service: Nodemailer (for sending order confirmations)
-
Clone the repository:
git clone https://github.com/yourusername/velvet-and-whisks.git cd velvet-and-whisks -
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.envfile and add:MONGODB_URI=your_mongodb_uri GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret RAZORPAY_KEY_ID=your_razorpay_key_id RAZORPAY_SECRET=your_razorpay_secret EMAIL_HOST=your_email_host EMAIL_PORT=your_email_port EMAIL_USER=your_email_username EMAIL_PASS=your_email_password
- Create a
-
Start the development server:
npm run dev
-
Visit
http://localhost:3000to view the site.
- Login: Use Google OAuth to log in.
- Browse Products: Check out single and bulk milk options.
- Cart Management: Add items, adjust quantities, and proceed to checkout.
- Checkout and Payment: Use Razorpay for secure payment processing.
- Email Confirmation: Receive order confirmation details in your email inbox.
velvet-and-whisks/
├── src/
│ ├── components/ # Reusable components like Navbar, Footer, ProductCard
│ ├── pages/ # Main pages like Home, About, BrowseMenu
│ ├── services/ # Services for handling API calls, authentication, etc.
│ ├── utils/ # Helper functions and constants
│ └── App.js # Main application component
├── public/ # Public files (e.g., images, icons)
├── .env # Environment variables
├── README.md # Project documentation
└── package.json # Project metadata and dependencies
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add YourFeature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding with Velvet and Whisks!