This is a nested menu web application which was implemented by React hooks.
- User is able to navigate down in directory, util find out the desired data sources.
Clone down this repository. You will need latest node
and npm
installed globally on your machine.
Installation:
npm install
To Start Server:
npm start
To Visit App:
localhost:3000
To Run Test Suite:
npm test
- When user selects a sub menu, application will fire an rest request to fetch next layer data.
- Application was implemented by recursion way for displaying nested menu structure.
- React | Font Awesome for icons
- Prop Types for strict type checking
- Lodash FP
- PASS src/App.test.js
- PASS src/components/Icon/Icon.test.jsx
- PASS src/components/Node/Node.test.jsx
- PASS src/components/Tree/Tree.test.jsx
- PASS src/util/helper.test.js
Test Suites: 5 passed, 5 total Tests: 20 passed, 20 total Snapshots: 0 total Time: 2.857s
This is a very brief list of things that I would love to work on given more time:
- Implement collapsible feature on menu
- Improve UX (e.g. loading spinner right next to each folder when on click event happened)
- Improve the algorithm / data structure
- Increase unit test coverage
- Fix any edge case bugs
Stanley Hsu