简体   繁体   中英

UML design for a nodeJS web application

I am designing an web application based on 3rd tier architecture client side : HTML5 , CSS , JS , jQuery .. middle tier : nodeJS Database : mysql

I need to do the general design of the middle tier part using UML diagrams. what's confusing is that nodeJS is not class oriented like Java and C++ , so the question is can I implement a class diagram for the node part and if not what are the alternatives ?

Don't beat me if I'm too far off but nodeJS is some kind of middleware. That means it transforms some input to some output in a black box. You can model that as component having a required and a provided interface.

Something along this line: 在此输入图像描述

You can think your application design in terms of UML Classes and you can code using one of the temporary approaches to Classes in JavaScript and class is planned core feature in the upcoming JavaScript 6 . So classes are the way to go.

Object Oriented Programming with classes is a programming paradigm , way to look at things, way to give names to things...

See also:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM