Skip to content
Our new ES6-based platform for the upcoming 2019 overhaul.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
models
views
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

Elore Beta

Our new ES6-based platform for the upcoming 2018 re-launch.

Dependencies

  • express
  • mongoose
  • handlebars (express-handlebars)
  • body-parser
  • showdown (JS-based markdown to HTML converter)

Usage

  1. Create a file named env.sh looking something like this:
  export PORT=8080
  export DB_URI=mongodb://your_address
  1. source env.sh (source environment variables - skip this step if using another env configuration)
  2. yarn (install dependencies).
  3. yarn begin (if you have nodemon installed) or yarn start if you don't have nodemon installed.

Code

  1. Routes are defined in index.js to map URLs to handlebar templates.
  2. Static .html files are located in /views/static.
  3. Static images in views/img are loaded in index.js
  4. Paths within href tags are routes instead of files (i.e. /team instead of /team.html).
  5. The default template (including head, footer, and nav tags) is /views/layouts/main.handlebars.
  6. Subsequent templates are defined accordingly in /views and are routed in index.js.
You can’t perform that action at this time.