A simple setup micro-forum built in Node.js with Express and MongoDB.
npm install linear> A simple setup micro-forum built in Node.js with Express and MongoDB.






``bash`
$ npm install linear --save
`javascript
const linear = require('linear');
linear.startWithConfig({
'site_name': 'Sample Forum'
});
`
Type: String 'Sample Forum'
Default:
Name used in both header and title tags throughout the site.
Type: Object {'static': './static'}
Default:
Directories used to overwrite the assets included with linear.
- static: All static files: CSS, Fonts, JavaScriptlocales
- : 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.
Place the following key/value pairs in an .env file locally and within the settings panel of your Heroku application.
Read more at
``
MONGOLAB_URI=mongodb://username:password@mongolab.com/linear
Omitting either of these social networks will prevent it from showing up on the login screen.
For more information on how to retrieve these keys see
``
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_CALLBACK=http://localhost:5000/login/facebook/callback
For more information on how to retrieve these keys see
``
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK=http://localhost:5000/login/google/callback
For more information on how to retrieve these keys see
``
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_CALLBACK=http://localhost:5000/login/twitter/callback
The default template supports Twitter Cards. To get these to display you must first run a sample post through the Card Validator and then Request Approval to be whitelisted.
Read more at
```
SECRET=