ShopNex is a modern eCommerce template powered by Payload CMS, designed to help you launch a fully functional online store with ease. Whether you're starting a new store or building a scalable commerce platform, ShopNex provides a robust set of features and tools to streamline your development process.
Here’s a cleaner and more polished version of your Getting Started section with better formatting, a clearer explanation of the CLI command, and flag descriptions:
Spin up a new ShopNex project in seconds using our CLI tool:
Run one of the following commands:
pnpm dlx create-shopnex-app
# or
npx create-shopnex-app
This command will guide you through the setup process, prompting you for options like your preferred database and environment configuration.
ShopNex offers two options for your storefront:
If you choose Builder.io as your storefront:
- Configure your
.env
file with Builder.io credentials - Run
pnpm run pages:seed
to seed your Builder.io pages
You can customize the setup behavior using the following flags:
Flag | Description |
---|---|
--fresh |
Skips seeding of initial data. Starts a clean setup. |
--skip-env |
Skips environment variable setup. You can configure .env manually later. |
--skip-dev |
Does not automatically start the development server after setup. |
Example usage:
pnpm dlx create-shopnex-app my-store --fresh --skip-env
├── src
│ ├── access # Role-based access logic
│ ├── admin # Custom admin panel components
│ ├── app # Core app logic: frontend, API routes, Payload admin
│ ├── collections # Payload CMS collections
│ │ ├── GiftCards.ts # Gift cards collection
│ │ ├── Locations.ts # Locations collection
│ │ ├── Users.ts # Users collection
│ │ ├── Products # Example of modular collection structure
│ │ │ ├── Products.ts # Main collection config for products
│ │ │ └── fields # Subfolder for custom fields (e.g., price, inventory)
│ │ ├── ... # Other collections
│ │ └── Policies.ts # Example of custom collection with custom fields
│ ├── fields # Reusable field definitions (e.g., slug, description)
│ ├── globals # Global site settings (Footer, Store config, etc.)
│ ├── seed # JSON and script-based seeding logic
│ ├── utils # Common utilities (formatting, mapping, etc.)
│ └── webhooks # Webhooks for external event handling (e.g., payments)
└── tsconfig.json
-
📊 Analytics Dashboard - Track performance with a sales chart
-
🛍️ Beautiful Storefront - Built using Next.js & Tailwind CSS
-
💳 Stripe Checkout Integration - Seamless and secure payment experience
-
📦 CJ Dropshipping Integration - Effortless product sourcing and fulfillment
-
📁 Customer & Order Management - Manage customers, orders, and store operations easily
-
🎨 Custom Branding & UI Customization - Make the store truly yours with flexible design options
-
🧩 Plugin Marketplace - Integrate third-party tools with just a few clicks
-
🗂️ Import Mapping – Easily import collection data from various systems via CSV or Excel
💡 Pro tip: Don’t forget to ⭐ star the repo and fork it to make it your own!
We welcome contributions! If you find any bugs or have ideas for improvements, feel free to:
- 🐛 Open an issue to report bugs or request features.
- 🔧 Fork the repo and submit a pull request with your improvements.
- 💬 Join our Discord community for discussions and support.
Before contributing, please:
- Check existing issues and PRs to avoid duplication.
- Follow any project-specific contribution guidelines (if available).
Shopnex is licensed under the MIT License.