Skip to content

Instantly share code, notes, and snippets.

View ryanSN's full-sized avatar
🎧

Ryan Chatterton ryanSN

🎧
View GitHub Profile
Username/Password:
COPY #1
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
COPY #2
sudo apt update && sudo apt install apache2-utils docker.io docker-compose
COPY #3

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@ryanSN
ryanSN / authorApi.js
Created October 15, 2016 18:51 — forked from coryhouse/authorApi.js
Mock Author API for "Building Applications with React and Flux" on Pluralsight
"use strict";
//This file is mocking a web API by hitting hard coded data.
var authors = require('./authorData').authors;
var _ = require('lodash');
//This would be performed on the server in a real app. Just stubbing in.
var _generateId = function(author) {
return author.firstName.toLowerCase() + '-' + author.lastName.toLowerCase();
};