Skip to content

GBNguyen1340/CoMayBakery

Repository files navigation

Cỏ May Bakery: Online Bakery Website


Cỏ May Bakery is a web application showcasing and managing bakery products, built using Next.js and Sanity CMS, and deployed on Vercel. Check example website here: https://co-may-bakery.vercel.app/ BackEnd repo: https://github.com/GBNguyen1340/comay_bakery_sanity

Features

  • Showcase of bakery products with a modern UI.
  • Managed content using Sanity CMS.
  • Optimized for deployment on Vercel.
  • Built with the latest features of Next.js.

Getting Started

Prerequisites

Before running the project, ensure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/co-may-bakery.git
    cd co-may-bakery
  2. Install dependencies:

    npm install
    # or
    yarn install

Running Locally

To run the application in development mode:

npm run dev
# or
yarn dev

The application will be available at http://localhost:3000.


Deployment

Deploy on Vercel

  1. Install the Vercel CLI if not already installed:

    npm install -g vercel
  2. Log in to Vercel:

    vercel login
  3. Deploy the project:

    vercel
  4. Your application will be live at the Vercel-provided URL.


Project Structure

├── components/        # Reusable components
├── pages/             # Application routes
├── public/            # Static assets
├── styles/            # Global and component-level styles
├── .env.local         # Environment variables
├── next.config.js     # Next.js configuration
├── package.json       # Project dependencies

Useful Scripts

  • npm run dev: Run the development server.
  • npm run build: Build the application for production.
  • npm start: Start the application in production mode.

Contributing

Contributions are welcome! Please fork the repository and create a pull request for any improvements or bug fixes.


License

This project is licensed under the MIT License. See the LICENSE file for details.