This QBicSamples project contains various examples of the capabilities of the QBic platform as well as sample code for implementing the various features.
The QBic platform comprises a back-end web server, that is used to generate the web pages, or front-end, for a fully functional web-based application.
Most of the relevant code is inside the Models and the Samples folders.
The Models folder contains the entity classes which correspond to tables that are created in the database by NHibernate.
The Samples folder contains example code for creating various input screens and screen views to display information to an end user.
Before running this samples application, you need to make sure of the following:
- You have IIS installed on your development machine.
- You run Visual Studio as an administrator when working on QBic projects.
- Add HTTPS binding to IIS for Default Site.
- Install URL REWRITE module into IIS.
To run the samples:
- Clone the project
- Load the solution in Visual Studio (running as admin)
- Rebuild the application (don't run it)
this restores all nuget repositories
- Run the application
Some of the sample features in this repository include:
- A basic CRUD sample
This is the most basic method of creating a view with edit, add and delete input screens - A relatively basic sample
This example demonstrates how to create views, add, edit and delete screens with more control than the basic CRUD sample - A more advanced sample
This example also has a view and input screens, but allow a lot more control and customization - A multiple screen example
This sample shows how to build sequential views and input screens that pass data back and forth - An example where data is filtered depending on the current user
This example demonstrates how to change the data depending on which user is currently logged in. - An example background process
This is an example of setting up a background process that will run automatically - Adding a basic API Controller
This shows how to add a regular .NET Controller and how to configure the routing - Adding an additional Identity Service
This example shows how it is possible to add and use a custom identity service to use the QBic web server to serve as an Identity Service and secure data repository for an external system such as a web site or mobile application.