Code Monkey home page Code Monkey logo

Comments (2)

aaronpowell avatar aaronpowell commented on May 20, 2024

Now that scenario 3 has been implemented, I've pondered how a template could be made for it.

Strapi has a template feature for setting up new projects, but it works on a specific structure of what files exist where. The other alternative is that Strapi has starters, which use templates but are more complete applications (so combine something like Next.js + Strapi).

On the other hand you have azd templates, which are really just taking an existing GitHub repo, cloning it and pushing to Azure using azd up. These need to be more structured like a standard repo, so could be similar to the starters concept from the Strapi CLI.

Then there's the idea proposed in the initial description, don't have Strapi in the azd template repo, just the infra/azure.yaml/etc. files so you can azd-ify an existing repo. This would essentially be using the Make your project azd compatible approach, but some how make it easier to import the various files needed, rather than copy/paste them from docs/online.

Here's my pro/con list for the approaches:

  • Create a Strapi template or starter
    • Pros: integrate with the standard Strapi workflow, working application immediately
    • Cons: Requires shipping Strapi "in the box", thus having to worry about upgrade/maintenance of packages
  • Create an azd template
    • Pros: Clearer ties to azd and that workflow, working application immediately
    • Cons: Foreign to someone who's familiar with Strapi and bootstrapping projects, requires shipping Strapi in the box
  • azd-only files template
    • Pros: Don't have to maintain the Strapi instance in the template, allows adding it into existing project
    • Cons: Doesn't appear that azd has direct support for this workflow at present

from contoso-real-estate.

manekinekko avatar manekinekko commented on May 20, 2024

It looks like the template for azd and Strapi has already been created. Can we close this issue? cc @sinedied

module cms './app/blog-cms.bicep' = {
name: 'cms'
scope: rg
params: {
containerAppsEnvironmentName: !empty(containerAppsEnvironmentName) ? containerAppsEnvironmentName : '${abbrs.appManagedEnvironments}${resourceToken}'
containerRegistryName: !empty(containerRegistryName) ? containerRegistryName : '${abbrs.containerRegistryRegistries}${resourceToken}'
applicationInsightsName: monitoring.outputs.applicationInsightsName
location: location
adminJwtSecret: adminJwtSecret
apiTokenSalt: apiTokenSalt
appKeys: appKeys
jwtSecret: jwtSecret
databasePassword: cmsDatabasePassword
serverName: !empty(cmsDatabaseServerName) ? cmsDatabaseServerName : '${abbrs.dBforPostgreSQLServers}db-${resourceToken}'
environmentName: environmentName
storageAccountName: storageAccount.outputs.name
databaseName: 'strapi-${resourceToken}'
}
}

from contoso-real-estate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.