This turborepo uses Yarn as a package manager. It includes the following packages/apps:
api
: a NestJS appweb
: a Next.js appui
: a stub React component library used byweb
.config
:eslint
andtailwind
(includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
This turborepo has some additional tools already setup for you:
- Node Package Scripts for automation scripts
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
This starter kit is using turborepo and yarn workspaces for monorepo workflow.
- Install nps by running
npm i -g nps
Make sure you are at root of the project and just run
nps prepare
To build all apps and packages, run the following command at the root of project:
nps build
To develop all apps and packages, run the following command at the root of project:
nps dev
The app should be running at http://localhost
with reverse proxy configured.
For running only a specific app, run the following command at the root of project:
nps dev.<app-name>
example: nps dev.api
will run only the api app.
for more details on how to use turborepo, please refer to turborepo
Run nps
in the terminal to see list of all available commands.