- Clone the repository:
git clone https://github.com/anantdahiya8/receipt-processor.git
, thencd receipt-processor
- Build Image:
docker build -t rp:1 .
- Run the image:
docker run -d -p 4000:4000 rp:1
- Server will start on port 4000.
(Urls: POST: http://localhost:4000/receipts/process, GET: http://localhost:4000/receipts/{id}/points)
OR
- Go to NodeJs Website : https://nodejs.org/en
- Download latest NodeJs package and install it.
- Image Guide (3 Steps):
- Clone the repository:
git clone https://github.com/anantdahiya8/receipt-processor.git
, thencd receipt-processor
- Install dependencies:
npm install
- Start the dev server:
npm start
- Server will start on port 4000.
(Urls: POST: http://localhost:4000/receipts/process, GET: http://localhost:4000/receipts/{id}/points)
- Run the test:
npm run test