UML design for a nodeJS web application

7k views Asked by At

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 ?

2

There are 2 answers

4
qwerty_so On

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: enter image description here

0
xmojmr On

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: