NobodyButMe-Haiya / rebel-northwind

This is sample master /detail chart for tutorial purpose youtube.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RebelCmsTemplateSharp

Rebel Cms Template C Sharp

This is the fourth instalment from the C sharp CRUD Edition

It shown how does a real single page application (SPA) and clean structure for building Asp.net .net Core 6 web application .

In this code you will learn out

  1. Basic create , read , update ,delete , excel reporting within one single form
  2. Basic optimisation what need to be AJAX request .
  3. Basic SQL optimisation for MySQL .
  4. Master Detail Sample
  5. Simple Dashboard Sample

Why does SPA compare to Normal Website

  1. Normal website do cache all those javascript , css and load lesser but loading time a bit higher.
  2. Normal javascript like vue , react load one time js file and maybe cache. We don’t like cache for some purpose.

What will be odd in this sample

  1. XHR error - reason , the server load the data but not async. So don’t worry about it because you tooo fast clicking.

Most people said vue,react and angular the best for asp.net for spa?

  1. We no idea , we implement spa 10 years ago without those thing . The last one using jquery same like this but no need those thing because not existed yet.
  2. The real spa is no website reload for all pages. Sorry we unsure how to manipulate hispter js library . We live in dom world not ref .
  3. We can easily use resources like php for spa purpose . Razor and hot reload give a bit life

What’s really problem in real life application moved to website.

  1. You have 10,000 product . A select box/ combo box in web wouldn’t handle this large data. If you need master-detail setup , rather clicked to open to edit instead of one time add row by row detail .
  2. Make a textbox suggest using datalist or Ajax request on key type on TEXTBOX . Saving 10,000 dom is not possible and crash the website .

Why still rename as Rebel ? The name rebel is to make sure people understand we rebel for non structure development. Software development is long process hour and testing. A small company doesn’t understand CMMI or Waterfall only blaim to agile. A real business will be maintain if got stable based application.

Are this rebelcms for commercial ? Sorry not , if you deploy it commercial you need to contact us via curling_yaw.0w@icloud.com If you want cheap solution , please find other .

How to install this

  1. Create a database rebelcms
  2. Get this sql inside database folder
  3. From your terminal or command prompt run
dotnet watch run
  • this is hot reload .net core 6
  1. To access the admin

Username : admin Password : 123456

** you may changed it at first time.

Youtube Preview
IMAGE ALT TEXT

https://youtu.be/_7Ts5xsjQBM

** for those had issue connection string mariadb to connect

error Object cannot be cast from DBNull to other types."

This method assume that the "id" column's value is not null. Unfortunately, from the version 10.10, MariaDB switch the "Id" column to "Allow Null" and there are a lot of row in Collations with NULL Id. That causes the "Object cannot be cast from DBNull to other types" exception. Seem 10.9 is the only option for now if you wish to use the MySql.Data package and wait for a fix in MySql.Data.

stackoverflow

** new base code have been updated to mysql connector instead mysql data package and will be release in a few month later

About

This is sample master /detail chart for tutorial purpose youtube.


Languages

Language:C# 51.1%Language:HTML 43.5%Language:JavaScript 4.6%Language:CSS 0.8%