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 theejs
views (organized by each page) for server render.routes
: Contains all thepage routers
andapi 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
:shared
folders within each type of directory contain those files which are commonly included/used, for example,navbar
andfooter
would be put into theshared
folder in views.public/libs
: Put all libraries, such asjQuery
,Bootstrap
etc.
/
: home page./'page_name'
: 'page_name' page./api/'page_name'
: api for 'page_name' page.