Skip to content

cpyle0819/fetch-receipt-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch Receipt Processor Implementation

Prerequisites

Bun - https://bun.sh/docs/installation

Install & Run - Manual

To install dependencies:

bun install
bun run src/index.ts

Test - Manual

bun test

Install, Test, & Run - Docker

docker build --pull -t <image_name> .
docker run -d -p 3000:3000 <image_name>

Q&A

Why TypeScript?

While I love learning new languages, I'm most comfortable in TS/JS. I want to demonstrate my best, and I can't do that while simultaneously picking up new language (at least not in a sane amount of time).

Why Bun?

Bun was primarily selected for it's out-of-the-box TypeScript support, speed, and built-in testing framework. This makes it a reasonable choice for this type of exercise.

Why use Express and not Bun's HTTP server?

The out-of-the-box HTTP server requires manual parsing of request objects and manual creation of response objects. It leaves a lot of room for human error.

Why not use HTTPS?

For the simplicity of running this exercise, HTTP is used. In production, HTTPS would be configured.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published