This monorepo is powered by turborepo and pnpm. It includes the following packages/apps:
admin-web
: a Next.js app for admin useruser-web
: another Next.js app for normal userui
: a bunch of React component shared by bothadmin-web
anduser-web
applicationsconfig
: sharedeslint
configurationstsconfig
: sharedtsconfig.json
configuration
Each package/app is 100% TypeScript.
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
- Vitest for unit testing
- Cypress for integration & end-to-end testing
- Make sure you have Node.js Installed (LTS 16 is recommended)
- Clone this repository
- Open terminal in project directory
- Install PNPM package manager using :
npm install -g pnpm@next-7
- Install project dependency using :
pnpm install
- To run this project:
- In project root directory, run
pnpm run dev
to start booth app in dev mode - To run each app separately, run
pnpm run dev
in each app directory (/apps/app-name)
- In project root directory, run
- To run unit test in this project:
- In project root directory, run
pnpm run test
to start unit testing suite for booth app - To test each app separately, run
pnpm run test
in each app directory (/apps/app-name)
- In project root directory, run
- To run integration test in this project:
- In project root directory, run
pnpm run cypress
to start integration testing suite for booth app - To test each app separately, run
pnpm run cypress
in each app directory (/apps/app-name)
- In project root directory, run