Our new ES6-based platform for the upcoming 2018 re-launch.
- handlebars (
- showdown (JS-based markdown to HTML converter)
- Create a file named
env.shlooking something like this:
export PORT=8080 export DB_URI=mongodb://your_address
source env.sh(source environment variables - skip this step if using another env configuration)
yarn begin(if you have nodemon installed) or
yarn startif you don't have
- Routes are defined in
index.jsto map URLs to handlebar templates.
.htmlfiles are located in
- Static images in
views/imgare loaded in
- Paths within
hreftags are routes instead of files (i.e.
- The default template (including
- Subsequent templates are defined accordingly in
/viewsand are routed in