docker build -t receipt-processor .
docker run -p 3000:3000 receipt-processor
API/Swagger will be running on localhost:3000
A SQLite database is seeded with the test data:
{
"retailer": "M&M Corner Market",
"purchaseDate": "2022-03-20",
"purchaseTime": "14:33",
"items": [
{
"shortDescription": "Gatorade",
"price": "2.25"
},{
"shortDescription": "Gatorade",
"price": "2.25"
},{
"shortDescription": "Gatorade",
"price": "2.25"
},{
"shortDescription": "Gatorade",
"price": "2.25"
}
],
"total": "9.00"
}
Entry file: ./src/index.ts
Endpoints: ./src/endpoints
Calcs: ./src/calcs