A modern eCommerce application built with Next.js, Prisma, Turborepo, and Shadcn.
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.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
-
Clone the repository:
git clone https://github.com/Kiranism/turbo-ecom.git
-
If you are using Windows, ensure Docker is installed and running.
-
Navigate to the root directory and run the following command to start the PostgreSQL database in Docker:
docker-compose up
-
Install the dependencies:
pnpm install
-
Run the development server:
pnpm run dev
- The application should now be running at http://localhost:3000.
Instructions for deploying the application will be provided here.