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.
- Host: GitHub
- URL: https://github.com/kiranism/turbo-ecom
- Owner: Kiranism
- Created: 2024-07-03T17:37:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-26T18:22:52.000Z (about 1 year ago)
- Last Synced: 2025-03-30T21:51:15.566Z (6 months ago)
- Topics: ecommerce, nextjs, shadcn-ecommerce, turborepo, turborepo-shadcn, turborepo-starter
- Language: TypeScript
- Homepage:
- Size: 402 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)