This is the solution for the Design System Challenge proposed as an evaluation of aptness for a Front-end developer position.
For technical details and implementation logs, check out the History file.
This project is built with Vite and Yarn. To run it, follow these steps:
- Use
nvm
,asdf
, or any other Node version management (including just installing the correct Node version from the website) to ensure your Node.js version is20.9.0
- Install Yarn globally if you don't have it by running
npm install yarn -g
. - Run
yarn --version
inside the project's folder to check the version that the project is using. The.yarn/yarn-4.0.1.cjs
file should ensure that the newest Yarn is used, but if you don't see4.0.1
as the result of theyarn --version
command, check the Troubleshooting section to understand how to solve it. For more context on the reason for using Yarn 4, check History's technical choices section. - Run
yarn install
to install all the packages.
Run yarn run storybook
. Storybook should be available at http://localhost:6006/
.
Run yarn dev
. The index page provides a minimal structure to render the TreeView component outside of a Storybook environment.
It should be available at http://127.0.0.1:3000/
.
Ensure you're running Node.js 20.9.0 and then run the following, in order:
corepack enable;
yarn set version berry;
yarn install
Remove node_modules
, clean Yarn's cache and install the dependencies again:
rm -rf node_modules
yarn cache clean
yarn install