Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
'use strict'; | |
const authentication = require('feathers-authentication'); | |
const jwt = require('feathers-authentication-jwt'); | |
const local = require('feathers-authentication-local'); | |
const oauth2 = require('feathers-authentication-oauth2'); | |
const GithubStrategy = require('passport-github'); | |
// Bring in the oauth-handler | |
const makeHandler = require('./oauth-handler'); |
// media-model.js - A mongoose model | |
// | |
// See http://mongoosejs.com/docs/models.html | |
// for more of what you can do here. | |
module.exports = function (app) { | |
const mongooseClient = app.get('mongooseClient'); | |
const { Schema } = mongooseClient; | |
const options = { | |
discriminatorKey: 'type', |