A progressive Node.js framework for building efficient and scalable server-side applications.
The application was built on
node v16.13.0
Nest This app was built using nest framework.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# for Json conversion
http://localhost:3000/convert/json
# for xml conversion
http://localhost:3000/convert/xml
# for text conversion
http://localhost:3000/convert/txt
http://localhost:3000/api
Replace <userpath>
with your appropriate path on your computer. Eg - /Users/ayoola/converter-app/sample_files/
curl -X POST \
'http://localhost:3000/convert/json' \
--header 'Accept: */*' \
--form 'separator="*"' \
--form 'delimiter="~"' \
--form 'file=@<userpath>/sample_files/sample-txt.txt>'
curl -X POST \
'http://localhost:3000/convert/xml' \
--header 'Accept: */*' \
--form 'separator="*"' \
--form 'delimiter="~"' \
--form 'file=@<userpath>/sample_files/sample-txt.txt>'
curl -X POST \
'http://localhost:3000/convert/txt' \
--header 'Accept: */*' \
--form 'separator="*"' \
--form 'delimiter="~"' \
--form 'file=@<userpath>/sample_files/sample-json.json>'
# unit tests
$ npm run test
Nest is MIT licensed.