On many occasions we find ourselves with the need to convert files to and from excel and for this we need to install the office dll.
This api has been co-developed with a command line utility "DSFileConverter" to solve this problem.
- Clone this project
- Run npm install
- Compile Typescript
- Run node main.js
- Clone this project
- To run and debug in visual studio environments.
- Type F5 or start debugging
- npm run start:dev
- Add "outDir" to tsconfig.json at "compilerOptions" element.
"outDir": "./dist",
- Run webpack --config=webpack.config.js at command prompt. This make a /dist folder with DsFileConverterApi.js file. OR
- Run webpack --config=webpack.production.js at command prompt. This make a production code in /dist folder with DsFileConverterApi.js file.
- There are a docker file in the root folder. Run docker build to make a docker image.
- Build docker image: docker build -t dsfileconverterapi:latest .
- Create container either portainer, kitematic, docker desktop or another docker tool
- Must mount one host folder in to docker to read from and write to files
- or use command propmpt: docker run dsfileconverterapi:latest -p 52001:52001 -v "YourHostFolder:DockerFolder"
- Remove solution.
- Remode docker container and images.
- Run swagger from this api
- localhost:52001/swagger (you can map this in container creation)
- The api was configurate to run in localhost:52001
José Durán Pareja
Copyright (©) 2022 José Durán Pareja.
Portions of (©) https://sheetjs.com/ Community Edition