It's a simple app to preview sourced text files.
This project was bootstrapped with create-react-app. It's a plain ReactJS application that uses React hooks for state management. I used react-bootstrap to build the UI. I tried to keep it as simple as possible to deliver the requested features.
To handle high volume of files:
- the app's UI would need to be checked for very log file list
parseFilesandgetFileswould need to work on chunked data- file list pagination/lazy loading could leverage the chunks
- in extremly nested diretory structures: a Map key (where I store file paths) is limited to string max length in JS, that is 2^30
I did not use external souces intensively as I picked known tools to build the application. Nerevtheless I visited a few times these pages:
- reactjs.org
- react-bootstrap.github.io
- plus some stackoverflow.com obviously
Ca. 6h. (including this doc and basic tests).
Replace src/data/dataSource.json file with your own data file and run the requested shell scripts for your environment (run.sh, build.sh).
build.sh will build a production ready package into ./build that you can deploy.
On top of that you can use the standard yarn commands:
yarnto pull dependenciesyarn startto run development serveryarn testto run basic tests
