npm install
node main.js
curl --location --request POST 'http://localhost:3000/create-user' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "USERNAME",
"password": "PASSWORD"
}'
curl --location --request POST 'http://localhost:3000/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "USERNAME",
"password": "PASSWORD"
}'
For Uploading Contacts.csv
curl --location --request POST 'http://localhost:3000/upload-contacts' \
--header 'x-access-token: TOKEN_HERE' \
--form 'contacts=@"/home/jkjarvis/Desktop/test.csv"'