Please enable JavaScript.
Coggle requires JavaScript to display documents.
BUILDING_FEATURE - Coggle Diagram
BUILDING_FEATURE
STEPS
Problem
Understand
Backend
Start
Think
Input/Output
SimpleAPI
Declare
Extend
DomainModel
If-Required
HappyPath
Build
AddDetails
1-by-1
Cover
EdgeCases
Frontend
Create
SimpleUI
Working
AddDetails
Gradually
VALIDATION
In @section-scripts
AtBegin
@Scripts.Render("~/bundles/jqueryval")
Custom
$.validator.addMethod(..)
Args
"validCustomer"
func() {..}
ReturnBool
msg
$("#form").validate({..})
submitHandler:
function() {..}
submit code
CSS
label.error
input.error
ResetForm
validator.resetForm()
PROBLEM
Understand
AskQuestions
Approach
Start
Backend
Focus
Input/Output
UseCase
Input
Customer
Movies
Output
None
NewRental
Create
API
Controller
Action
Dto
SimplestAPI
HappyPath
DOMAIN
Modelling
Create
Model
If-Required
AddTo
DbContext
Migrate
AUTO-COMPLETE
Install
Twitter.typeahead
Bundle
Add
Scripts/typeahead.bundle.js
CSS
Search
Typeahead.js
ExamplePage
PageSource
CSS-Copy
Paste-In
typeahead.css
JS
ExamplePage
RemoteLink
FILTERING
In-GetCustomers
Add-Args
Optional
string query = null
StringCheck
if(!..)
String.IsNullOrWhiteSpace(query)
EDGE-CASES
Defensive
PublicAPIs
LotsOf
Validation
Required
Optimistic
PrivateAPIs
Frontend
TOASTR
Install
Toastr
/content/toastr.css
/scripts/toastr.js
Message
toastr.success(msg)
toastr.error(msg)