This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;======================================================================================================== | |
| ; | |
| ; Program : Security:User | |
| ; Date : 14 Mar 2016 | |
| ; Author : Lee Driscoll | |
| ; | |
| ; Description : Service for interaction with the Security:User module | |
| ; | |
| ;======================================================================================================== | |
| .include "CODE_WEB_SERVER:Import.def" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "project-name", | |
| "version": "0.1.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "pretest": "npm run lint", | |
| "test": "NODE_PATH=source ava --verbose", | |
| "lint": "NODE_PATH=source xo", | |
| "babel-node": "NODE_PATH=source babel-node .", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = require('path') | |
| var webpack = require('webpack') | |
| module.exports = { | |
| entry: path.resolve(__dirname, 'public/index.js'), | |
| devtool: 'cheap-eval-source-map', | |
| output: { | |
| filename: 'bundle.js', | |
| path: path.resolve(__dirname, 'dist/public') | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Orders } from '../actions/OrderActions' | |
| const initialState = { | |
| orders: [] | |
| } | |
| function orderApp(state = initialState, action) { | |
| switch (action.type) { | |
| case 'ADD_ORDER': | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import test from 'ava' | |
| import {createStore} from 'redux' | |
| import {addOrder} from '../client/actions/OrderActions' | |
| import orderApp from '../client/reducers/AppReducer' | |
| test('add order', t => { | |
| let store = createStore(orderApp) | |
| const order = { | |
| id: 99, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "xo": { | |
| "space": true, | |
| "semicolon": false, | |
| "overrides": [ | |
| { | |
| "files": "server/**/*.js", | |
| "settings": { | |
| "import/resolver": { | |
| "node": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import test from 'ava' | |
| import nock from 'nock' | |
| import { createStore, applyMiddleware } from 'redux' | |
| import thunkMiddleware from 'redux-thunk' | |
| import { apiURL } from '../client/config' | |
| import { fetchOrders } from '../client/actions/OrderActions' | |
| import * as types from '../client/constants/ActionTypes' | |
| import appReducer from '../client/reducers/RootReducer' | |
| import _ from 'lodash' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Set a boolean for Dev mode | |
| export const isDevelopment = process.env.NODE_ENV === 'development' | |
| // Everything for remote calls should go in here | |
| export const api = { | |
| protocol : isDevelopment ? 'http' : 'https', | |
| host: isDevelopment ? 'dev.url' : 'prod.url', | |
| port: isDevelopment ? 80 : 5678 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import express from 'express' | |
| import bodyParser from 'body-parser' | |
| import webpack from 'webpack' | |
| import webpackDevMiddleware from 'webpack-dev-middleware' | |
| import webpackHotMiddleware from 'webpack-hot-middleware' | |
| import WebpackDashboardPlugin from 'webpack-dashboard/plugin' | |
| import webBuildConfig from './webpack.web' | |
| import cordovaBuildConfig from './webpack.cordova' | |
| const IP = process.env.IP || 'localhost' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import express from 'express' | |
| import bodyParser from 'body-parser' | |
| import webpack from 'webpack' | |
| import webpackDevMiddleware from 'webpack-dev-middleware' | |
| import webpackHotMiddleware from 'webpack-hot-middleware' | |
| import WebpackDashboardPlugin from 'webpack-dashboard/plugin' | |
| import webBuildConfig from './webpack.web' | |
| import cordovaBuildConfig from './webpack.cordova' | |
| const IP = process.env.IP || 'localhost' |