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

https://github.com/btc415/ecommerce_mern

A full-stack e-commerce application developed using the MERN (MongoDB, Express, React, Node.js) stack. The project includes features such as user authentication, product management, shopping cart, and payment processing.
https://github.com/btc415/ecommerce_mern

nextauth nextjs prisma reactquery sentry stripe tailwindcss typescript yup

Last synced: 11 months ago
JSON representation

A full-stack e-commerce application developed using the MERN (MongoDB, Express, React, Node.js) stack. The project includes features such as user authentication, product management, shopping cart, and payment processing.

Awesome Lists containing this project

README

          




Fullstack Next.js E-commerce

## Technologies 🔧

- Next.js(React)
- TypeScript
- Prisma
- NextAuth
- Stripe
- Tailwind
- React Query
- Sentry
- Yup

## Screenshots 📸




## Code Example/Issues 🔍

If you have any issues, please let me know in the issues section or directly to alenschmitt415@gmail.com

## Installation 💾

```bash
git clone https://github.com/BTC415/eCommerce_MERN.git
```

Fill your `.env` variables:

```
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
DATABASE_URL="postgresql://:@:/?schema=public&sslmode=prefer"
GITHUB_SECRET=
GITHUB_ID=
SECRET=
NEXTAUTH_URL=
NEXTAUTH_CALLBACK_URL=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
NEXT_PUBLIC_STRIPE_SUCCESS_REDIRECT_URL=
NEXT_PUBLIC_STRIPE_ERROR_REDIRECT_URL
```

Install deps:

```bash
npm install
```

Generate Prisma Client:

```bash
npx prisma generate
```

Run docker-compose:

```bash
docker-compose up -d
```

Run Next dev server:

```bash
npm run dev
```