This project showcases a simple CSV parser built using Ampt, a platform offering a high fidelity cloud environment for developing and running cloud-native applications using Node.js. The parser facilitates the uploading of CSV files through an API, processing the data, and then storing it in Ampt.
- File Uploading: Accepts CSV file uploads via a POST request.
- CSV Processing: Uses
papaparse
to parse the uploaded CSV, handling delimiters effectively. - Data Storage: Employs Ampt's storage service to save parsed data.
- Upload your CSV file to the server.
- The system will write the CSV to Ampt's storage service.
- Returns the status of the upload in a JSON format.
- csvStorage.on("write:*.csv"): On a
.csv
file write event, the system reads and parses the CSV file and stores the processed data.
Go to the URL of the developer sandbox that Ampt provides you. Upload a file, and check Ampt Dashoard to see the file and storage.