To run the app please follow the below steps.
- clone the project, cd to the project dir
- npm install
- npm start
###APIs and their Uses.
-
baseURL+/uploadfile ->This endpoint takes CSV file as a inpute in the formate mentioned in files folders above. and uploads the data to mongoBD in a relational manner. which can be used in further to query the BD and get the data back. or aggregated data.
-
baseURL+/Policy ->this API returns the policy mapped against any user, by taking the first_name as a Input in the POST request body.
-
baseURL+/Policy/agent ->API returns the list of policy's which a perticular agents helped/referred the user to get the policy. Inpust agent_name in the POST request body.
-
baseURL+/Post ->API for uploading and retriving any post messages. if you make a http POST call alon with the message body, it'll be uploaded to the mongoBD cloude and if you make a http GET request without any body, the API will return the latest posts.