this is my first node.js app, which is will be running on WeChat's official accounts platform, the porject is intended to serve restraunt named MeiWeiTing
/**********************************************************/ explanation of the structure of this project
*controllers/ – defines your app routes and their logic *helpers/ – code and functionality to be shared by different parts of the project *middlewares/ – Express middlewares which process the incoming requests before handling them down to the routes *models/ – represents data, implements business logic and handles storage *public/ – contains all static files like images, styles and javascript *views/ – provides templates which are rendered and served by your routes *tests/ – tests everything which is in the other folders *app.js – initializes the app and glues everything together *package.json – remembers all packages that your app depends on and their versions
above structure of this project is refered to below essay (https://www.terlici.com/2014/08/25/best-practices-express-structure.html)