- Added package.json with dependencies and scripts for building and testing the API. - Implemented DIContainer for managing service instances (Cosmos DB, Key Vault). - Created createDonation function to handle donation creation and Stripe payment processing. - Implemented getDonations function for fetching donations with pagination and filtering. - Defined types for Donation, Volunteer, Program, and API responses. - Configured TypeScript with tsconfig.json for strict type checking and output settings. - Developed deployment scripts for production and simple deployments to Azure. - Created Bicep templates for infrastructure setup including Cosmos DB, Key Vault, and Function App. - Added parameters for deployment configuration in main.parameters.json. - Configured static web app settings in staticwebapp.config.json for routing and security.
34 lines
809 B
JSON
34 lines
809 B
JSON
{
|
|
"name": "miracles-in-motion-api",
|
|
"version": "1.0.0",
|
|
"description": "Azure Functions API for Miracles in Motion nonprofit platform",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"watch": "tsc -w",
|
|
"prestart": "npm run build",
|
|
"start": "func start",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"@azure/cosmos": "^4.0.0",
|
|
"@azure/keyvault-secrets": "^4.8.0",
|
|
"@azure/identity": "^4.0.1",
|
|
"@azure/functions": "^4.0.1",
|
|
"stripe": "^14.10.0",
|
|
"joi": "^17.12.0",
|
|
"uuid": "^9.0.1",
|
|
"cors": "^2.8.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.10.6",
|
|
"@types/uuid": "^9.0.7",
|
|
"@types/cors": "^2.8.17",
|
|
"typescript": "^5.3.3",
|
|
"jest": "^29.7.0",
|
|
"@types/jest": "^29.5.11"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |