@bagisto-headless/create
v1.0.8
Published
Create a new Bagisto Headless Commerce project from the official Next.js template.
Maintainers
Readme
Bagisto Headless Commerce Project Creator
@bagisto-headless/create is a CLI tool to quickly bootstrap a new Bagisto Headless Commerce project.
Quick Start
You can create a new project by running:
npx @bagisto-headless/create <your-project-name>What it does
This command simplifies the setup process by performing the following steps:
- Clones the Repository: It fetches the latest version of the Bagisto Headless Commerce.
- Sets up the Project: Creates a new directory with your project name and initializes it.
- Installs Dependencies: Automatically runs
npm installwith the necessary flags. - Configures Environment: Prompts you for essential configuration details:
NEXT_PUBLIC_BAGISTO_ENDPOINT: Your Bagisto Shop URL.NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY: Your Bagisto Storefront Key.NEXT_PUBLIC_NEXT_AUTH_URL: Your Headless Shop URL.NEXT_PUBLIC_NEXT_AUTH_SECRET: Your Headless Shop Secret.COMPANY_NAME: Your company name.
- Generates
.env.local: Saves your configuration to a.env.localfile so you're ready to start developing immediately.
After Installation
Once the setup is complete, you can start your development server:
cd <your-project-name>
npm run devDocumentation
- Bagisto Headless eCommerce: https://bagisto.com/en/headless-ecommerce/
- Headless Documentation: https://headless-doc.bagisto.com/
- API Documentation: https://api-docs.bagisto.com/
- GitHub Repository: https://github.com/bagisto/nextjs-commerce
Developed by Bagisto.
