commerce

(★ 14,223)

Next.js Commerce

File Explorer

  • .env.example
  • .gitignore
  • license.md
  • next.config.ts
  • package.json
  • pnpm-lock.yaml
  • postcss.config.mjs
  • README.md
  • tsconfig.json

# Installation Guide

node
Prerequisites

Setup Steps

npm i -g vercel

Install Vercel CLI globally.

vercel link

Link the local project with Vercel and GitHub accounts.

vercel env pull

Download environment variables from Vercel.

pnpm install

Install project dependencies.

pnpm dev

Run the development server.

Key Commands

pnpm install

Install all project dependencies based on pnpm-lock.yaml.

pnpm dev

Start the Next.js development server to run the application locally.

To configure environment variables, copy .env.example to .env or pull them using the Vercel CLI.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

npm

View Details ▼

JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.

npm init {{[-y|--yes]}}

Create a `package.json` file with default values (omit `--yes` to do it interactively):

npm {{[i|install]}}

Download all the packages listed as dependencies in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

🔍

pnpm

View Details ▼

Fast, disk space efficient package manager for Node.js.
Manage Node.js projects and their module dependencies.

pnpm init

Create a `package.json` file:

pnpm {{[i|install]}}

Download all the packages listed as dependencies in `package.json`:

pnpm add {{module_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

🔍

vercel

View Details ▼

Deploy and manage your Vercel deployments.

vercel

Deploy the current directory:

vercel --prod

Deploy the current directory to production:

vercel {{path/to/project}}

Deploy a directory:

// repository documentation