BlazingApple.Survey.Shared
1.0.0
See the version list below for details.
dotnet add package BlazingApple.Survey.Shared --version 1.0.0
NuGet\Install-Package BlazingApple.Survey.Shared -Version 1.0.0
<PackageReference Include="BlazingApple.Survey.Shared" Version="1.0.0" />
paket add BlazingApple.Survey.Shared --version 1.0.0
#r "nuget: BlazingApple.Survey.Shared, 1.0.0"
// Install BlazingApple.Survey.Shared as a Cake Addin #addin nuget:?package=BlazingApple.Survey.Shared&version=1.0.0 // Install BlazingApple.Survey.Shared as a Cake Tool #tool nuget:?package=BlazingApple.Survey.Shared&version=1.0.0
BlazingApple.Survey 🍎
🔥 A totally copacetic, easy-to-use front-end Blazor Survey package. This front-end Razor Class Library is intended to be used by Blazor WASM projects, and targets .NET 5.
About BlazingApples
BlazingApples is an open-source set of packages that aims to speed application development for Blazor WebAssembly organizations.
⚡ Check out the demo site here, or this blog post on how the components work!
👏 Special thanks to ADefWebServer for creating the BlazorSimpleSurvey demo application which this is based off of.
Demo 📹
<p align="center"> <img alt="Demo of Copacetic" src="https://github.com/BlazingApple/Survey/blob/main/README/BlazingApplesDemo.gif?raw=true"> </p>
Installation 🔧
1. Get the required dependencies.
- On Client Project, right click and get to the NuGet Package Manager ("Manage NuGetPackages").
- Install
BlazingApple.Survey
- Add the following to
Program.cs's Main
:
builder.Services.AddScoped<DialogService>();
builder.Services.AddScoped<TooltipService>();
builder.Services.AddScoped<NotificationService>();
builder.Services.AddScoped<BlazingApple.SurveyService>();
- In your
index.html
file, add the required Radzen style and script:
<link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css">
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
2. Set up your server's API controller to receive the requests.
It is recommended to do this with EntityFrameworkCore to create the tables in my database and receive and process the request. This portion of the setup shows how to do this.
- In your
Server
project, openApplicationDbContext
, add the following tables:
using BlazingApples.Shared;
...
public DbSet<Survey> Surveys { get; set; }
public DbSet<SurveyAnswer> SurveyAnswers { get; set; }
public DbSet<SurveyItem> SurveyItems { get; set; }
public DbSet<SurveyItemOption> SurveyItemOptions { get; set; }
- Create a
SurveysController.cs
in theControllers
directory. Feel free to copy this controller.
Usage 💪
Once the (admittedly rather involved) setup is complete, using the components is straightforward:
- In a component, add the
<DisplaySurvey></DisplaySurvey>
component to show surveys to a user. If no survey is provided, this component will download all the active surveys from the server and give the user options to take them. - Use the
<SurveyAdmin></SurveyAdmin>
component in a page in which you'd like to enable users to create or modify surveys. - Step 3
Credits 💮
- Build with love 💙, using Radzen's Component Library and ADefWebServer's BlazorSimpleSurvey as a starting point.
Authors 📝
License 📜
Home Page 📷
Taking Surveys 📷
Monitoring Responses 📷
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on BlazingApple.Survey.Shared:
Package | Downloads |
---|---|
BlazingApple.Survey
BlazingApple is a collection of business objects and corresponding components to speed application development. BlazingApple.Survey renders survey management components and components to take a survey as well as sending the objects to a server. |
|
BlazingApple.Survey.Components
BlazingApple is a collection of business objects and corresponding components to speed application development. BlazingApple.Survey renders survey management components and components to take a survey as well as sending the objects to a server. |
GitHub repositories
This package is not used by any popular GitHub repositories.