Bonik - Multipurpose Next.js Ecommerce Template
Introduction
Bonik is a modern, feature-rich ecommerce template built with Next.js, offering a comprehensive solution for building online stores. This documentation will guide you through the setup and deployment process.
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js (LTS version recommended)
- npm (comes with Node.js) or yarn
- Git (for version control)
You can check your installed versions by running:
node --version
npm --version
Getting Started
1. Installation
Install the dependencies:
npm install
# or
yarn install
Important: Do not delete the
package-lock.json
oryarn.lock
file as they ensure consistent installations across environments.
2. Development Server
To start the development server:
npm run dev
# or
yarn dev
This will start a local server at http://localhost:3000
with:
- Hot-reload enabled
- Real-time error reporting
- Development debugging tools
3. Production Build
To create an optimized production build:
npm run build
# or
yarn build
4. Starting Production Server
To start the production server:
npm run start
# or
yarn start
Additional Scripts
npm run lint
- Run ESLint for code qualitynpm run test
- Run test suitenpm run type-check
- Run TypeScript type checking