An open API service indexing awesome lists of open source software.

https://github.com/kiranism/turbo-ecom

A Turbo monorepo e-commerce project with admin and user apps, sharing a common database, Prisma schema, and Shadcn UI components across apps.
https://github.com/kiranism/turbo-ecom

ecommerce nextjs shadcn-ecommerce turborepo turborepo-shadcn turborepo-starter

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://www.docker.com/get-started) - to run PostgreSQL database in a container
- [pnpm](https://pnpm.io/installation) - for package management

### Installation

1. Clone the repository:

```bash
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:

```bash
docker-compose up
```

4. Install the dependencies:

```bash
pnpm install
```

5. Run the development server:

```bash
pnpm run dev
```

### Usage

- The application should now be running at [http://localhost:3000](http://localhost:3000).

### Deployment

Instructions for deploying the application will be provided here.

## Built With

- [Next.js](https://nextjs.org/)
- [Prisma](https://www.prisma.io/)
- [Turborepo](https://turborepo.org/)
- [Shadcn](https://shadcn.dev/)