or simply run
npm install -g pnpmFirst, clone this repo using git:
git clone git@github.com:karnjj/kuigun-chat.git
# or
git clone https://github.com/karnjj/kuigun-chat.gitNext, install all dependencies:
pnpm installFinally, run the development server:
# run both frontend and backend
pnpm turbo run dev
# run only frontend
pnpm turbo --filter=web dev
# run only backend
pnpm turbo --filter=api devOpen http://localhost:3000 with your browser to see frontend. Open http://localhost:8000 with your browser to see backend.
Folder structure:
.
├── apps
│ ├── api # server
│ └── web # client
├── ...
└── README.mdTo install a new dependency, run:
# install to root workspace
pnpm add <package-name> --workspace-root
# install to frontend workspace
pnpm --filter=web add <package-name>
# install to backend workspace
pnpm --filter=api add <package-name>