Skip to content

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.

Notifications You must be signed in to change notification settings

LucasSilbernagel/decision-tree

Repository files navigation

Decision Tree

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.

decision-tree

Live Link

https://decision-tree-omega.vercel.app/

Tech Stack

Front End

Linting & Formatting

Run Locally

Prerequisites

  • 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 or yarn commands, this project uses pnpm. Once you have Node.js installed on your computer, you can install pnpm by running npm install -g pnpm, or by following other instructions here.

Clone the repository

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 .

Install dependencies

To install all of the required dependencies, run pnpm install.

Start up the app

  • To start up the app locally, run pnpm run dev in your terminal. Your terminal should indicate a localhost URL at which you can view the app in your browser, most likely http://localhost:5173/.

Testing

Unit Tests

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

E2E tests are written with Playwright.

Use pnpm run test-e2e to run all E2E tests.

About

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.

Resources

Stars

Watchers

Forks