MVC, jQuery, ECharts, node.js, mongodb
Screen shots of the website are in public/images.
-
MVC structure
- routes: contains routes for both input URL and API query.
- models: 'dbConnect.js ' only involves database connection; 'DataAnalyticModel.js' involves static methods for any required database query.
- controllers: contains controllers according to router.
- views: this folder only contains .ejs files for main page and only used for back end render.
-
front end resources in 'public' directory
- components: the whole page is divided into three components: left_overall, right_overall, individual. each component has its .ejs file, .js file and .css file, which are stored in 'javascripts' and 'stylesheets' separately. .ejs files in this folder are used for front end render.
- images: stores static resources such as logo image and screen shot of the whole page.
- javascripts: 'DataAnalyticMain.js' is the js file of the main page; js files in 'components' folder are for different components; js files in 'external' folder are for external javascript library.
- stylesheets: 'baseStyleSheet.css' is the base css file for the whole website; 'DataAnalyticMain.css' is the css file of the main page; css files in 'components' folder are for different components; css files in 'external' folder are stylesheets of external library.