Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehrabmp/kara-shop
KARA - Ecommerce built with T3 Stack : NextJS, TypeScript, tRPC, Prisma, NextAuth and styled with Tailwind CSS
https://github.com/mehrabmp/kara-shop
ecommerce i18next next-auth nextjs postgresql prisma react shop t3-stack tailwindcss trpc typescript vercel
Last synced: 6 days ago
JSON representation
KARA - Ecommerce built with T3 Stack : NextJS, TypeScript, tRPC, Prisma, NextAuth and styled with Tailwind CSS
- Host: GitHub
- URL: https://github.com/mehrabmp/kara-shop
- Owner: mehrabmp
- License: mit
- Created: 2022-07-20T19:32:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T21:27:19.000Z (about 2 months ago)
- Last Synced: 2025-01-19T23:02:49.158Z (13 days ago)
- Topics: ecommerce, i18next, next-auth, nextjs, postgresql, prisma, react, shop, t3-stack, tailwindcss, trpc, typescript, vercel
- Language: TypeScript
- Homepage: https://karashop.vercel.app
- Size: 10.5 MB
- Stars: 322
- Watchers: 4
- Forks: 55
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KARA Shop
Full-stack e-commerce built with [T3 Stack](https://create.t3.gg/)
- **Framework**: [Next.js](https://nextjs.org/)
- **Database**: [PostgreSQL](https://www.postgresql.org/)
- **ORM**: [Prisma](https://prisma.io/)
- **Authentication**: [NextAuth.js](https://next-auth.js.org/)
- **Deployment**: [Vercel](https://vercel.com)
- **Styling**: [Tailwind CSS](https://tailwindcss.com/)Home page
![homepage](public/screenshots/homepage.png)Products page
![homepage](public/screenshots/products.png)## Environment Variables
To run this project, you will need to add the following environment variables to your `.env` file
```bash
# Database URL for prisma
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"# URL of the website
NEXTAUTH_URL='http://localhost:3000'# Used to hash tokens, sign/encrypt cookies and ...
# You can quickly create a good value with this command
# openssl rand -base64 32
NEXTAUTH_SECRET=VJmi1XgBd48qWC2xn/kNRc15OIY+P4a1uXgV42uaHuw=# GitHub oAuth
GITHUB_ID=YOUR_GITHUB_CLIENT_ID
GITHUB_SECRET=YOUR_GITHUB_CLIENT_SECRET# Google oAuth
GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET# Twitter oAuth
TWITTER_CLIENT_ID=YOUR_TWITTER_CLIENT_ID
TWITTER_CLIENT_SECRET=YOUR_TWITTER_CLIENT_SECRET
```## Run Locally
Clone the project
```bash
git clone https://github.com/mehrabmp/kara-shop.git
```Go to the project directory
```bash
cd kara-shop
```Install dependencies
```bash
pnpm install
```Apply migrations to database
```bash
pnpm migrate-dev
```Seed the database
```bash
pnpm db-seed
```Start the server
```bash
pnpm dev
```