GithubHelp home page GithubHelp logo

ecommerce-admin-main's Introduction

Next.js App with Stripe Integration, Admin Dashboard & Image Upload

This project is a Next.js application that utilizes both server-side rendering (SSR) and client-side rendering (CSR) for optimal performance and user experience. It integrates with Stripe for secure payment processing, offers an admin dashboard with sales information, allows store detail modification, and provides product image upload functionality.

Prerequisites

Node.js and npm (or yarn) installed on your system. A Stripe account with API keys (test or live depending on your needs) Installation

# Navigate to the project directory:
cd ecommerce-admin

# Install dependencies:

pnpm install

# Configuration
# Create a .env.local file in the project root directory.

# Add the following environment variables to .env.local:

CLERK_SECRET_KEY=clerk
DATABASE_URL=database url supports postgres
FRONTEND_STORE_URL=front end url
STRIPE_API_KEY=stripe api key
STRIPE_WEBHOOK_SECRET=stripe webhook secret

NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=cloudinary could name

Important Note

Do not commit the .env.local file to your version control system.

Development

Start the development server:

pnpm dev

This will start the server on http://localhost:3000 by default.

Open http://localhost:3000 in your browser to access the application.

Features

  • Stripe Integration: The application integrates with Stripe for secure payment processing.
  • Admin Dashboard: The admin dashboard provides an overview of sales information. Store Detail Modification: Authorized users can modify store details within the admin panel.
  • Image Upload: Products can have images uploaded for display.

Building for Production

Build an optimized production version of the application:

pnpm run build

pnpm run start

Additional Documentation

This README provides a general overview of the project setup and functionality. For detailed implementation specifics, refer to the project's codebase.

Additional documentation:

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.