70 likes | 218 Views
MEAN. Server Model Controller Route --- ORM REST N ode.js, E xpress.js, M ongoDb. Client Model Controller Route View A ngular.js. Intro. Configure directory structure /server/package.json /server/config/config.js /server/app.js. Server. Client. JSON. MVC. REST. ORM.
E N D
MEAN Server • Model • Controller • Route • --- • ORM • REST Node.js, Express.js, MongoDb Client • Model • Controller • Route • View Angular.js
Intro • Configure directory structure • /server/package.json • /server/config/config.js • /server/app.js
Server Client JSON MVC REST ORM express.js mongoose angular.js node.js Browser mongoDb
/server/package.json • /server/config/config.js • /server/app.js • Intro • Server • Model in mongoose and node.js • Controller CREATE in mongoose and node.js • Route CREATE in node.js • Controller RETRIEVE in mongoose and node.js • Route RETRIEVE in node.js • Controller UPDATE in mongoose and node.js • Route UPDATE in node.js • Controller DELETE in mongoose and node.js • Route DELETE in node.js • Services factory in angular.js • Controllers in angular.js • Routes in angular.js • Views in angular.js • Debugging • /server/app/models/books.js • /server/routes/books.js • /client/javascripts/services.js • /client/javascripts/controllers.js • /client/javascripts/app.js • /client/partials/book-list.html • /client/partials/book-detail.html
books • author • title • description • modificationDate
Data validatie • Database (index) • Model (mongoose) • Applicatie (node.js) • Client (html5 validatie)