https://github.com/ishankhare07/csv-server
https://github.com/ishankhare07/csv-server
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ishankhare07/csv-server
- Owner: ishankhare07
- Created: 2018-11-04T13:19:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T08:56:46.000Z (over 7 years ago)
- Last Synced: 2025-01-23T15:51:29.375Z (over 1 year ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csv-server
### Building the docker container
1. Clone this repository under your $GOPATH
2. Run `docker build . -t ishankhare07/csv-server` from inside the cloned repo.
3. Run `docker run -d -p 80:8080 ishankhare07/csv-server`
> the port mapping 80->8080 is done because the postman collection queries at port 80
### Assumptions made
The CSV file attached in the email was actually an excel file, and would have required the use of a much more complex library such as [github.com/tealeg/xlsx](https://github.com/tealeg/xlsx).
Hence I've exported the excel file into csv and have used that as the input for the api.
The file is included in the repository as well.