linear

A simple setup micro-forum built in Node.js with Express and MongoDB.

linear

A simple setup micro-forum built in Node.js with Express and MongoDB.

$ npm install linear --save
var linear = require('linear');
 
linear.startWithConfig({
    "site_name": "Sample Forum"
});

Type: String
Default: "Sample Forum"

Name used in both header and title tags throughout the site.

Type: Object
Default: { "static": "./static" }

Directories used to overwrite the assets included with linear.

  • static: All static files: CSS, Fonts, JavaScript
  • locales: Localization files.
  • views: Server-side templates.

Note: Replacing the locales directory is a destructive action. Changing static or views is a additive action as the server will look for static files and view templates in the config specified directories first.

Type: String
Default: ""

Tracking code for Google Analytics. http://www.google.com/analytics/

Place the following key/value pairs in an .env file locally and within the settings panel of your Heroku application.

Read more at https://devcenter.heroku.com/articles/nodejs-mongoose#mongodb-connectors.

MONGOLAB_URI=mongodb://username:password@mongolab.com/linear

Omitting either of these social networks will prevent it from showing up on the login screen.

FACEBOOK_CLIENT_ID=<token>
FACEBOOK_CLIENT_SECRET=<token>
FACEBOOK_CALLBACK=http://localhost:5000/login/facebook/callback
 
TWITTER_CONSUMER_KEY=<token>
TWITTER_CONSUMER_SECRET=<token>
TWITTER_CALLBACK=http://localhost:5000/login/twitter/callback

Read more at https://github.com/expressjs/session#sessionoptions.

SECRET=<token>