- 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.
18 lines
380 B
JSON
18 lines
380 B
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"appName": {
|
|
"value": "miraclesinmotion"
|
|
},
|
|
"environment": {
|
|
"value": "prod"
|
|
},
|
|
"location": {
|
|
"value": "eastus2"
|
|
},
|
|
"stripePublicKey": {
|
|
"value": "pk_live_placeholder"
|
|
}
|
|
}
|
|
} |