Express is a web framework based on the Nodejs platform that allows us to quickly develop web references. And gulp is an automatic build tool, very powerful, with it, can help us do a lot of tedious work, for example, the compression of static files, add a hash to the static file name to prevent caching and so on.
Environment installation
To use the Express framework and gulp, you first install the NODEJS environment, because the NODEJS environment is installed before you can use the NPM Package Manager to download Express and gulp.
Nodejs to the official website to download, now the general project uses a stable version of 4.6.
Overall structure of the project
From this diagram we can clearly see the project directory structure, each folder has its own role, I will slowly tidy up the details of each folder and folder.
Express+gulp construction Project (i) Project directory structure