This is the code example of the article. It uses turbo to manage the monorepo and NextJS to the client side and Express to the server side.
Run the following command:
npm run dev
# or
yarn dev
# or
pnpm dev
This repo includes the following packages/apps:
@app/client
: a Next.js app@app/server
: a Express.js apptypes
: a type library shared by both@app/client
and@app/server
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
This repo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting