Decision Tree is a simple generator of shareable and accessible decision trees. Decision tree data is serialized and saved in the URL, making it easy to share and save created decision trees.
https://decision-tree-omega.vercel.app/
- In order to run this application locally, you must have Node.js installed on your computer. To check if you already have it installed, enter
node -v
in your terminal. If you do not have Node.js, you can find installation steps here: https://nodejs.org/en/learn/getting-started/how-to-install-nodejs- Make sure to install at least version 20 of node.
- Instead of
npm
oryarn
commands, this project usespnpm
. Once you have Node.js installed on your computer, you can installpnpm
by runningnpm install -g pnpm
, or by following other instructions here.
Once you have confirmed that Node.js and pnpm
are installed, cd
into a folder on your computer and run the following command to clone the repository:
git clone https://github.com/LucasSilbernagel/decision-tree.git
Then cd
into the project folder and open it in your code editor. For Visual Studio Code:
cd decision-tree
code .
To install all of the required dependencies, run pnpm install
.
- To start up the app locally, run
pnpm run dev
in your terminal. Your terminal should indicate alocalhost
URL at which you can view the app in your browser, most likely http://localhost:5173/.
Unit tests are written with Vitest and React Testing Library.
Use pnpm run test-unit
to run all unit tests, or use pnpm run test-unit SomeFileToRun
to run a specific test file.
E2E tests are written with Playwright.
Use pnpm run test-e2e
to run all E2E tests.