Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbonkr/sample-formbuilder-api
https://github.com/bbonkr/sample-formbuilder-api
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bbonkr/sample-formbuilder-api
- Owner: bbonkr
- Created: 2022-05-18T05:08:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T22:45:44.000Z (over 2 years ago)
- Last Synced: 2024-04-09T21:56:08.927Z (7 months ago)
- Language: C#
- Size: 119 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample formbuilder api
Please see with [bbonkr/sample-react-formbuiler](https://github.com/bbonkr/sample-react-formbuiler)
## Entities
```mermaid
erDiagram
Forms ||--o{ FormItems : items
Forms ||--o{ FormLocaled : locales
Forms {
string Id
string Title
}
FormLocaled {
string FormId
string LanguageId
string Title
}
FormItems ||--o{ FormItemOptions : options
FormItems ||--o{ FormItemLocaled : locales
FormItems {
string Id
string FormId
string ElementType
string Name
string Label
string Description
string Placeholder
bit IsRequired
int Ordinal
}
FormItemLocaled {
string FormItemId
string LanguageId
string Label
string Description
string Placeholder
}
FormItemOptions ||--o{ FormItemOptionLocaled : locales
FormItemOptions {
string Id
string FormItemId
string Value
string Text
int Ordinal
}
FormItemOptionLocaled {
string FormItemOptionId
string LanguageId
string Text
}
```## Migrations
```bash
$ dotnet new tool-manifest
$ dotnet tool install dotnet-ef --local
```### Migrations add
```bash
$ cd src/FormBuilder.Data
$ dotnet ef migrations add "Initialize" --startup-project ../FormBuilderApp --project ../FormBuilder.Data.SqlServer
```