Skip to content

Here we parse a csv file neatly and then upload the data into mongodb as models. We can then perform CRUD and more operations through apis on this data ๐Ÿš€

Notifications You must be signed in to change notification settings

ankan1811/csv_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Backend Assignment [Node.js,Typescript,MongoDB]

Overview

This project provides the RESTful APIs for getting card status given the card_id or user_phone.

Purposefully, I have kept the .env file so that the setup becomes easy. Obviously,it will be gitignored in a real scenario

Base URL

The base URL for all endpoints is: http://localhost:4000/

To Run

1.npm install 2.npm run dev

Get Card Status

  • Endpoint: /get_card_status
  • Method: GET
  • Description: Get card status given the card_id or user_phone.
  • URL Params: parameter : card_id and value : [ Any CARD ID from the csv files ] or parameter: user_phone and value : [ Any User Mobile or User contact from the csv files ]

๐Ÿ“Œ Output

Card status of the card associated with that given card_id or user_phone

๐Ÿ“ŒBasic Working

As soon as we start the server all those csv files will be parsed and stored as models in Mongodb.```

To publish on DockerHub:

 Create a repository on hub.docker.com as your_dockerhub_username/your_repository_name
 1. docker build -t your_dockerhub_username/your_repository_name .
 2. docker run -it your_dockerhub_username/your_repository_name
 3. docker push your_dockerhub_username/your_repository_name

About

Here we parse a csv file neatly and then upload the data into mongodb as models. We can then perform CRUD and more operations through apis on this data ๐Ÿš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published