Repository files navigation
How to run in your laptop:
Ensure you have Docker up and running
Clone this repository
docker-compose up
Wait for kafka and zookeeper services to be up and running
Hit API's with below POSTMAN collection attached below. To be on same page, service is running on 7070 port.
Have a good day :)
Restarts always if error occurs setup in docker compose
ESLINT with airbnb configuration
Used winston for logging which is more safer than console.log()
Kafka for asynchronous computing of processing of reciepts
Builder pattern for test data creation
Arange Act Assert pattern for testing data
Custom error handling
Alpine node:16 image which is very light-weight base image of nodejs
Schema Validator
Funtional tests by mocking kafka
api.yml has an example Mountain Dew 12PK. The regex associated with it is wrong, as it does not allow any whitespace character.
About
Backend service written in Node.js and Express.js to process receipts
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.