- express
- handlebars (
express-handlebars
) - dotenv
- body-parser
- Add environment variables containing
PORT
andDB_URI
(i.e. via sourcingenv.sh
). yarn
(install dependencies).yarn begin
(if you have nodemon installed) oryarn start
if you don't havenodemon
installed.
- Routes are defined in
index.js
to map URLs to handlebar templates. - Static
.html
files are located in/views/static
. - Static images in
views/img
are loaded inindex.js
- Paths within
href
tags are routes instead of files (i.e./team
instead of/team.html
). - The default template (including
head
,footer
, andnav
tags) is/views/layouts/main.handlebars
. - Subsequent templates are defined accordingly in
/views
and are routed inindex.js
.