This app parses CSV files and created data as JavaScript objects by letting users map column headers to existing object properties.
You can check out various CSV files in the dummy-data folder. You can create your own csv files or you can upload them to test the app.
The app is built in React a JavaScript Library and uses the following dependencies -
- xlsx for parsing
- Material UI
- Webpack for bundling
Steps -
- When the user uploads a file, the file is parsed and all the columns are extracted.
- Pre-existing mappings are created for the common columns to existing object properties.
- A Pop-up is displayed with drop-downs to let users map un-common columns.
- Once the values are selected from the dropdown, the user will click the Import button.
- The mapping is used to convert the data into object and upload to a API.
- Use node version 18.1.0.
- Open the folder in your code editor.
- Open your terminal and install node_modules
npm install
- Once done, to run the project on your browser use command
npm run start
.