HackNTU 2015 Official Website
$ sudo npm install
$ npm start
The server will listen on the port 3000
npm install 'module_name' --save
Do not forget --save argument, which saves new module to package.json for dependency use.
master: Main development branch.old-version: Backup for old-version official website.<other branches>: Feature branches.
views: Contains all theejsviews (organized by each page) for server render.routes: Contains all thepage routersandapi routers(organized by each page).public: Contains all non-compiled assets, such as css, js, imgs etc.config: Configurations.node_module: Contains all the node packages installed fromnpm install.*/shared:sharedfolders within each type of directory contain those files which are commonly included/used, for example,navbarandfooterwould be put into thesharedfolder in views.public/libs: Put all libraries, such asjQuery,Bootstrapetc.
/: home page./'page_name': 'page_name' page./api/'page_name': api for 'page_name' page.