Giter Site home page Giter Site logo

admin-hdz's Introduction

Admin Ecommerce

Mô tả:

Project này được xây dựng bằng Nextjs, Tailwind CSS, Prisma, MySQL và Clerk Auth. Admin được thiết kế để quản lý các khía cạnh khác nhau cửa web app, với trải nhiệm và điều hướng liền mạch.

Tính năng chính:

  • Admin dashboard vừa là CMS, vừa là trung tâm API.
  • Sử dụng MySQL, Prisma và PlanetScale để quản lý cơ sở dữ liệu mạnh mẽ và khả năng mở rộng.
  • Quản lý nhiều cửa hàng, cho phép kiểm soát nhiều danh mục và sản phẩm khác nhau thông qua một CMS duy nhất (Ví dụ: bạn có thể có "cửa hàng giày" và "cửa hàng laptop" và admin dashboard sẽ tạo các tuyến API cho tất cả các cửa hàng đó.)
  • Tạo, cập nhật và xóa danh mục sản phẩm để tổ chức một cách hiệu quả.
  • Tạo, cập nhật và xóa sản phẩm một cách dễ dàng.
  • Tạo, cập nhật và xóa các bộ lọc như "Color" và "Size" cho sản phẩm.
  • Tạo, cập nhật và xóa các "banner", có thể chọn hiện thị ở trang chủ hoặc trang danh mục.
  • Kiểm soát sản phẩm "nổi bật" và hiện thị trên trang chủ.
  • Quản lý đơn hàng, doanh số và doanh thu thông qua admin dashboard.
  • Utilizes MySQL, Prisma, and PlanetScale for robust database management and scalability.

Prerequisites

Node version 18.x

Cloning the repository

git clone https://github.com/kieuhuy123/admin-hdz.git

Install packages

npm i

Setup .env file

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
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=/

# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL=''
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
STRIPE_API_KEY=
FRONTEND_STORE_URL=http://localhost:3001
STRIPE_WEBHOOK_SECRET=

Connect to PlanetScale and Push Prisma

npx prisma generate
npx prisma db push

Start the app

npm run dev

Available commands

Running commands with npm npm run [command]

command description
dev Starts a development instance of the app

admin-hdz's People

Contributors

kieuhuy123 avatar

Watchers

 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.