Skip to content

duckien2012/EC2024-04-CakeHub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

E-Commerce CakeHub App

This is a e-commerce application built with React, TypeScript, and Tailwind CSS. The app includes features like cake listing, Cake details, shopping cart functionality, user authentication, and more.

Features

  • 🛒 Cake Listing: View a wide range of cakes with filters and search functionality.
  • 📄 Cake Details: Detailed cake pages with images, descriptions, and reviews.
  • 🛍️ Shopping Cart: Add/remove cakes from the cart, and manage quantities.
  • 🔐 User Authentication: Secure login, registration, and user profile management.
  • 💳 Checkout: Complete purchases using mock payment integration.
  • 🎨 Tailwind CSS Styling: Modern, responsive design using utility-first CSS framework.
  • 🔄 State Management: Managed with React Context API or Redux (choose based on your setup).
  • 🚀 Deployment: Optimized for deployment.

Technologies

This project base on MERN Stack.

Getting Started

Prerequisites

  • Node.js (v18 or later)
  • npm (v6 or later) or yarn

Installation and run the application

  1. Clone the repository:

    git clone https://github.com/Shiphu2103/EC2024-04-CakeHub.git
  2. Navigate to the server directory:

    cd server
  3. Install dependencies:

    npm install

    or

    yarn install
  4. Set up environment variables by creating a .env file in the root directory:

     DATABASE_URI=your_mongodb_uri
    
     CLIENT_ID = your_palpay_clientID
    
     CLOUDINARY_CLOUD_NAME=example_cloud_name
     CLOUDINARY_API_KEY=example_api_key
     CLOUDINARY_API_SECRET=example_api_secret
    
    
  5. Start the development server:

    npm start

    or

    yarn start
  6. Navigate to the app directory:

    cd client
  7. Set up environment variables by creating a .env file in the root directory:

    REACT_APP_API_URL=https://api.example.com
    
  8. Install dependencies:

    npm install

    or

    yarn install
  9. Set up environment variables by creating a .env file in the root directory:

    REACT_APP_API_URL=https://api.example.com
    
  10. Start the development app:

    npm start

    or

    yarn start
  11. Open http://localhost:3000 in your browser to view the app.

Tailwind CSS Configuration

The Tailwind configuration is defined in the tailwind.config.js file. You can customize it by adding your own themes, colors, or extending the utility classes.

Deployment:

Our website and database are deployed on Vercel. Link: https://cake-hub.vercel.app/

Contributors

License

This project is licensed under the MIT License.


Thank you, Pheelcus.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 55.4%
  • JavaScript 41.6%
  • CSS 2.6%
  • HTML 0.4%