Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Den här artikeln introducerar distributionsmallar för fullstackar för Azure Developer CLI (azd). Använd dessa mallar för att snabbt distribuera program med klient- och serverdelstjänster i Azure.
Vad är fullstackmallar?
Fullstackmallar omfattar:
- Klientdel: Ett användaranslutet webbprogram (React, Angular, Vue, Blazor och så vidare)
- Serverdel: Ett API eller tjänstlager (Node.js, ASP.NET Core, Python, Java, Go)
- Infrastruktur: Bicep- eller Terraform-filer för att etablera Azure-resurser
-
Konfiguration: En
azure.yamlfil som kopplar ihop allt
Varje mall i den här listan fungerar med azd kommandon som azd init, azd upoch azd deploy.
Så här använder du dessa mallar
Kom igång med någon av mallarna i listan genom att köra:
azd init --template <template-repo-name>
azd up
Om du till exempel vill använda mallen React + Node.js + MongoDB:
azd init --template todo-nodejs-mongo
azd up
JavaScript-/TypeScript-mallar
| Template | Frontend | Serverdel | Databas | IaC | AVM | Lagringsplats |
|---|---|---|---|---|---|---|
| React + Node.js + MongoDB | React på App Service | Node.js på App Service | Azure Cosmos DB (MongoDB) | Biceps | - | todo-nodejs-mongo |
| React + Node.js + MongoDB (Container Apps) | React på Container Apps | Node.js i Container Apps | Azure Cosmos DB (MongoDB) | Biceps | ✅ | todo-nodejs-mongo-aca |
| React + Node.js + MongoDB (Terraform) | React på App Service | Node.js på App Service | Azure Cosmos DB (MongoDB) | Terraform | - | todo-nodejs-mongo-terraform |
| React + Node.js + MongoDB (Static Web Apps) | React på Static Web Apps | Node.js på Azure Functions | Azure Cosmos DB (MongoDB) | Biceps | - | todo-nodejs-mongo-swa-func |
| React + Node.js + MongoDB (Kubernetes) | Reagera på AKS | Node.js på AKS | Azure Cosmos DB (MongoDB) | Biceps | - | todo-nodejs-mongo-aks |
.NET-mallar
| Template | Frontend | Serverdel | Databas | IaC | AVM | Lagringsplats |
|---|---|---|---|---|---|---|
| React + C# + SQL Database | React på App Service | ASP.NET Core i App Service | Azure SQL Database | Biceps | - | todo-csharp-sql |
| React + C# + Cosmos DB | React på App Service | ASP.NET Core i App Service | Azure Cosmos DB (NoSQL) | Biceps | - | todo-csharp-cosmos-sql |
| React + C# + SQL (Static Web Apps) | React på Static Web Apps | C# på Azure Functions | Azure SQL Database | Biceps | - | todo-csharp-sql-swa-func |
Python-mallar
| Template | Frontend | Serverdel | Databas | IaC | AVM | Lagringsplats |
|---|---|---|---|---|---|---|
| React + Python + MongoDB | React på App Service | Python (Flask/FastAPI) i App Service | Azure Cosmos DB (MongoDB) | Biceps | - | todo-python-mongo |
| React + Python + MongoDB (Container Apps) | React på Container Apps | Python i Container Apps | Azure Cosmos DB (MongoDB) | Biceps | ✅ | todo-python-mongo-aca |
| React + Python + MongoDB (Terraform) | React på App Service | Python på App Service | Azure Cosmos DB (MongoDB) | Terraform | - | todo-python-mongo-terraform |
| React + Python + MongoDB (Static Web Apps) | React på Static Web Apps | Python på Azure Functions | Azure Cosmos DB (MongoDB) | Biceps | - | todo-python-mongo-swa-func |
Java-mallar
| Template | Frontend | Serverdel | Databas | IaC | AVM | Lagringsplats |
|---|---|---|---|---|---|---|
| React + Java + MongoDB | React på App Service | Java (Spring Boot) på App Service | Azure Cosmos DB (MongoDB) | Biceps | - | todo-java-mongo |
| React + Java + MongoDB (Container Apps) | React på Container Apps | Java i Container Apps | Azure Cosmos DB (MongoDB) | Biceps | ✅ | todo-java-mongo-aca |
Bidra med mallar
Om du har en mall för fullstack som du vill bidra med kan du läsa bidragsguiden för Azure Samples.
Mallen bör:
- Inkludera både klient- och serverdelstjänster
- Använda Azure-verifierade moduler när det är möjligt
- Följ azd-mallstrukturen
- Inkludera en omfattande README med installationsinstruktioner
- Visas i Awesome AZD-galleriet