Sigmoid generator is a test project built with lerna and yarn workspaces. It is a simple tool that generates a sigmoid function with a given start, end, mean and deviation.
A live demo is available here
A live storybook is available here
- Getting Started
- Main dependencies
- Project structure
- Being Pragmatic
- Running the project
- Running the tests
- Running Storybook
- React
- Vite with SWC
- Typescript
- Lerna
- Yarn Workspaces
- TailwindCSS & DaisyUI
- Jest
- React Testing Library
- Storybook
- react-i18next
- recharts
- packages: contains all the packages of the project
- theme: contains the theme and UIKit of the project
- app: contains the main app of the project
This project is a test project. It is not meant to be used in production. That's why I chose to build it with Vite and SWC instead of CRA or NextJS (No SSR or SEO neededed).
Lerna and Yarn Workspaces are used to manage the project. It is a good way to manage a monorepo and to share dependencies between packages.
Everything is built with Typescript, tested with Jest and React Testing Library and documented with Storybook.
A step by step series of examples that tell you how to get a development environment running:
- Clone the repository:
git clone https://github.com/nolannbiron/SigmoidGenerator.git
- Install dependencies:
yarn install
- Build the project:
yarn build
- Run the project:
yarn start
To run the tests, run the following command:
yarn test
To run Storybook, run the following command:
yarn storybook