concept config in category node

appears as: config, config
Getting MEAN with Mongo, Express, Angular, and Node.js 2ED

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.

It’s the API in your application that will be using Passport, so you’ll create the config inside the app_api folder. Inside app_api, create a new folder called config, and inside that folder, create a new file named passport.js.

Isomorphic Web Applications: Universal Development with React

This is an excerpt from Manning's book Isomorphic Web Applications: Universal Development with React.

Listing 12.3. Routes—ember-universal/app/router.js
import Ember from 'ember'; #1 import config from './config/environment'; const Router = Ember.Router.extend({ #2 location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('post-detail', { path: '/post/:id' }); #3 }); export default Router; #1 Import the app config. #2 Initialize the router with rootUrl and location type based on config (here, these are the same as the defaults set up by ember-cli). #3 Add a second route for the Post Detail page—takes name and URL path. !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":0,\"ch\":56},{\"line\":0,\"ch\":58}],[{\"line\":14,\"ch\":0},{\"line\":14,\"ch\":2}],[{\"line\":3,\"ch\":56},{\"line\":3,\"ch\":58}],[{\"line\":15,\"ch\":0},{\"line\":15,\"ch\":2}],[{\"line\":9,\"ch\":56},{\"line\":9,\"ch\":58}],[{\"line\":16,\"ch\":0},{\"line\":16,\"ch\":2}]]"} !@%STYLE%@!