Azure / Azure/static-web-apps

[Feature request] Auto generated (zero-code) backend service

Open
#620 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Azure Static Web Apps is an awesome service. The deployment process and the Azure Functions backend are super cool and super easy to use.

But one thing is frustrating - the backend side. Adding a basic functionality that evolves DB (super common), makes things a little bit complex: Adding separate Azure Resource of CosmosDB or SQL Database, creating functions for access that DB, implementing security rules manually in the functions, etc.

I love the Azure Static Web Apps, and I use it for several projects. But most of the time, I'm finding myself wasting a lot of time by implementing simple backend services for basic resources CRUD operations.

**Describe the solution you'd like**
There are competitor services that took the backend one step further by configuring DB and security rules in some UI interface (zero-code) and auto-generates a simple backend service that allows you to access the data easily and keep your focus on your app business logic.

I would like to see such a thing here as a Microsoft solution.

**Describe alternatives you've considered**
An example of such a thing in Azure Static Web Apps can be done by auto-generate Azure database resource internally in the Azure Static Web Apps resource (like you do for the CDN and Azure Functions) and auto-generate API/Azure Functions from JSON/JS config (no UI is needed).

The JSON/JS config can define the resources' structure, the collections, security rules, allowed CRUD operations, etc. And on the deployment, Azure Static Web Apps will auto-generate API/functions to access those resources (like you generate `/.auth/...` you can generate `/backend/...` from that JSON/JS config.

Simple as that, no UI and no new SDKs are needed, just configure the commonly used backend with simple JSON/JS, and auto-generate the backend for the developer.

**Additional context**
This suggestion is an additional feature, not a replacement for the existing Azure Functions support. So, the developer will be able to use auto-generated backend, and custom complex additional functions.

I think this feature will take Azure Static Web Apps one step further.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.