Skip to content

A Turbo monorepo e-commerce project with admin and user apps, sharing a common database, Prisma schema, and Shadcn UI components across apps.

Notifications You must be signed in to change notification settings

Kiranism/turbo-ecom

Repository files navigation

Turbo Ecom 🚀

A modern eCommerce application built with Next.js, Prisma, Turborepo, and Shadcn.

Goal 🎯

The goal of this repository is to learn and demonstrate how to structure a monorepo and share packages across multiple apps. This includes:

  • UI Design System: Utilizing Shadcn UI to create a shared design system used across both admin and user applications.
  • Common Prisma Schema: Sharing a common Prisma schema across apps to handle database interactions, including the use of server actions for both the admin and user apps.

By organizing the project in a monorepo structure, we can efficiently manage and scale multiple applications with shared components, database models, and logic.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Docker - to run PostgreSQL database in a container
  • pnpm - for package management

Installation

  1. Clone the repository:

    git clone https://github.com/Kiranism/turbo-ecom.git
  2. If you are using Windows, ensure Docker is installed and running.

  3. Navigate to the root directory and run the following command to start the PostgreSQL database in Docker:

    docker-compose up
  4. Install the dependencies:

    pnpm install
  5. Run the development server:

    pnpm run dev

Usage

Deployment

Instructions for deploying the application will be provided here.

Built With

About

A Turbo monorepo e-commerce project with admin and user apps, sharing a common database, Prisma schema, and Shadcn UI components across apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published