Giter Club home page Giter Club logo

ecommerce-admin's Introduction

Full-Stack E-Commerce + Dashboard & CMS: Nextjs 13 App Router, React, Tailwind, Prisma, MySQL

For Demo, use Stripe Testing Cards

Live Demo: Store

Live Demo: Dashboard

Visit Store Repo: Store

Key Features

  • Admin dashboard is serving as CMS, Admin and API.
  • Create and multiple stores them within single Dashboard.
  • Authentication with Clerk.
  • Integration with Stripe payments and webhooks.
  • Image uploads with Cloudinary.
  • Styles with Shadcn UI.
  • Utilize latest Nextjs 13 App Router.

Prerequisites

Node v14.x

Getting Started

Install Packages

git clone [email protected]:tarek-elmasri/ecommerce-admin.git

cd ecommerce-admin

npm install

Setup .env file

DATABASE_URL=

# Clerk Authentication Keys
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

# Clerk Authentication callback urls
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/

# Cloudinary cloud preset
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=

# Stripe Secret Key
STRIPE_SECRET_KEY=

# Stripe Webhook Secret
STRIPE_WEBHOOK_SECRET=


# FrontEnd Store For Stripe Callbacks
FRONTEND_URL=

Connect to database and push Prisma

npx prisma generate
npx prisma push

Setting Stripe Webhook

  • In Stripe console, create new endpoint webhook.
  • Endpoint URL = <ADMIN_DASHBOARD_URL>/api/webhook.
  • Add "checkout.sessions.completed" Event.

Start App

npm run dev
# or
yarn dev
# or
pnpm dev

ecommerce-admin's People

Watchers

Tarek El-Masri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.