A simple Express server that creates from 1 to 10 random customers with a 200ms interval, and writes anonymized version of a customer document to customer anonymized collection.
- TypeScript - main programming language
- Node.js - runtime for application
- Express.js - backend framework
- MongoDB - main database
- Mongoose - library for working with Mongo
- Docker/Docker-compose - containerization tools
- Clone repository
cd
into project directory- run
npm i
ornpm ci
(package-lock is in the repository) - run
docker compose up -d
to spin up db - run
npm run build && npm start
- go to
GET: localhost:4000/api/v1/customer-anonymized
to check new customers