yarn install
This is a monorepo with Lerna and Turborepo.
It has an optimized dev
script at the root that will build all packages and then start react-scripts start
for the webapp and nodaemon
server process for the backend.
yarn dev
Similarly, there is a root test
command that runs tests for all packages.
yarn test
The project is written as a monorepo. There are 3 modules:
- @calculator/common - contains code shared between webapp and server
- @calculator/server - An express.js / TypeScript backend application with a single endpoint:
POST /calculate
- @calculator/webapp - A React.js / TypeScript application
Calculator intro - Watch Video