This small project reads data from a CSV file, converts each record into a JSON object,
and saves the data into a PostgreSQL table.
After inserting all rows, it prints a simple summary showing the percentage of users in each age group.
- I created a PostgreSQL database called
kelpdb. - Inside it, I made a table named
usersusing the given SQL file. - I placed my
.envfile with my database connection details. - Then I started the server with:node server.js
- Finally, I triggered the process by sending a POST request to:http://localhost:3000/process
The console printed the “Age-Group % Distribution” after processing my CSV file successfully.
Author: Merina Thoppil