asp.net mvc - Need advice on workflow of MVC project -
so new programming , working in c# , learning mvc. have undertaken first personal project put practice have been learning books/tutorials have been following. project typical store list products, has shopping cart, user account, admin site...etc.
i have managed wire nhibernate mysql db, , posting records view.
my question "where should start?". seems go lot of different directions, admin site manage site , products, getting products showing on site like, user accounts. advice of how "should" tackle each component?
i leaning towards admin site since logically putting products in store comes before showing products on store.
any advice appreciated.
i concur @tod
pick portion of website needed , build it. build model (include viewmodel), controller, , view.
in case, chose start users.
- i created database , users table (no didn't use code first or ef)
- then created linq dbml file
- then created super simple repository talks linq classes
- next created service layer little more heavy lifting before communicating repository layer
- following that, build viewmodel "transform" data used in view. included building htmlhelpers , extension methods.
- now controller. build new viewmodel object, pass object viewmodel, ,
return
viewmodel view. - lastly implemented view, did css , markup.
so when visit site, don't see whole lot except nice finished users section. includes sign-up area, login area, etc.
now users section finished, next big section "events" whereby start process on again.
Comments
Post a Comment