2025-02-11 14:52:32 +01:00
|
|
|
{
|
|
|
|
|
"name": "ticket-scaling-microservice",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"description": "Microservice for high volume ticket purchasing challenge.",
|
|
|
|
|
"main": "server.js",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"start": "node server.js",
|
2025-07-29 21:48:34 +01:00
|
|
|
"dev": "nodemon server.js",
|
|
|
|
|
"seed": "node seed.js",
|
|
|
|
|
"test": "jest",
|
2025-08-14 22:41:48 +01:00
|
|
|
"test:unit": "jest tests/unit",
|
|
|
|
|
"test:integration": "jest tests/integration",
|
|
|
|
|
"test:performance": "jest tests/performance",
|
|
|
|
|
"test:coverage": "jest --coverage",
|
|
|
|
|
"test:watch": "jest --watch",
|
2025-07-29 21:48:34 +01:00
|
|
|
"test:load": "node tests/load-test.js",
|
2025-08-13 22:41:37 +01:00
|
|
|
"test:fallback": "node test-fallback.js",
|
2025-08-14 22:41:48 +01:00
|
|
|
"test:security": "node test-security.js",
|
|
|
|
|
"test:duplicate-prevention": "jest tests/integration/duplicate-prevention.test.js",
|
|
|
|
|
"test:api": "jest tests/integration/api-endpoints.test.js",
|
|
|
|
|
"test:load-performance": "jest tests/performance/load-testing.test.js",
|
2025-07-29 21:48:34 +01:00
|
|
|
"docker:up": "docker-compose up -d",
|
|
|
|
|
"docker:down": "docker-compose down"
|
2025-02-11 14:52:32 +01:00
|
|
|
},
|
|
|
|
|
"keywords": [],
|
|
|
|
|
"author": "",
|
|
|
|
|
"license": "ISC",
|
|
|
|
|
"dependencies": {
|
2025-02-11 15:06:41 +01:00
|
|
|
"express": "^4.21.2",
|
2025-07-29 21:48:34 +01:00
|
|
|
"redis": "^4.7.0",
|
|
|
|
|
"pdfkit": "^0.15.0",
|
|
|
|
|
"winston": "^3.11.0",
|
|
|
|
|
"prom-client": "^15.1.0",
|
|
|
|
|
"uuid": "^9.0.1",
|
2025-08-14 22:41:48 +01:00
|
|
|
"dotenv": "^16.3.1",
|
|
|
|
|
"express-rate-limit": "^7.1.5",
|
|
|
|
|
"helmet": "^7.1.0",
|
|
|
|
|
"express-validator": "^7.0.1",
|
|
|
|
|
"axios": "^1.6.0"
|
2025-07-29 21:48:34 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"jest": "^29.7.0",
|
|
|
|
|
"supertest": "^6.3.3",
|
|
|
|
|
"autocannon": "^7.12.0",
|
|
|
|
|
"nodemon": "^3.0.2"
|
2025-02-11 14:52:32 +01:00
|
|
|
}
|
|
|
|
|
}
|