Kitiplex Native Wesite
tip
This website is built using Docusaurus. Learn more.
Creating new site
Generate a new Docusaurus site using the classic template.
The classic template will automatically be added to your project after you run the command:
- npm
- Yarn
- pnpm
npm init docusaurus@latest my-website classic
yarn create docusaurus@latest my-website classic
pnpm create docusaurus@latest my-website classic
cd my-website
- npm
- Yarn
- pnpm
npm run start
yarn run start
pnpm run start
Prerequisites
- Git.
- Node (version 12 or greater).
- Yarn (version 1.5 or greater).
- A fork of the repo (for any contributions).
- A clone of the
kitiplex-dev
repo.
Run locally
- Change directory to
website
from root:
cd website
- Install dependencies:
- npm
- Yarn
- pnpm
npm install
yarn install
pnpm install
- Start locally:
- npm
- Yarn
- pnpm
npm run build
yarn build
pnpm run build
- npm
- Yarn
- pnpm
npm run serve
yarn serve
pnpm run serve
- (Optional) Should you need to clear
build cache
:
- npm
- Yarn
- pnpm
npm run clear
yarn clear
pnpm run clear
Extended commands
You can run the dev server on 0.0.0.0 to make it listen on the local IP / local router.
- npm
- Yarn
- pnpm
npm run start --host 0.0.0.0
yarn run start --host 0.0.0.0
pnpm run start --host 0.0.0.0
Build and serve command to test your build locally.
- npm
- Yarn
- pnpm
npm run build && npm run serve --host 0.0.0.0
yarn build&& yarn serve --host 0.0.0.0
pnpm run build&& pnpm run serve --host 0.0.0.0
Know more about Docusaurus CLI.