diff --git a/Dockerfile b/Dockerfile
index 985e55159..3be5916a8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,15 +11,9 @@ EXPOSE 5000
# Install app dependencies
COPY package.json /usr/src/app/
-RUN npm install
+RUN npm install --production
# Bundle app source
COPY . /usr/src/app
-# Compile static assets
-RUN npm run build
-
-# Prune development dependancies
-RUN npm prune --production
-
CMD [ "npm", "start" ]
diff --git a/TERMINOLOGY.md b/TERMINOLOGY.md
new file mode 100644
index 000000000..5c1e9aaa8
--- /dev/null
+++ b/TERMINOLOGY.md
@@ -0,0 +1,66 @@
+# Product's Terminology
+
+This is a guide to have a common language to talk about "Talk".
+
+## Definitions
+
+* Site - a top level site, aka nytimes.com
+* Section - the section of a site, aka, Politics.
+* Subsection - the section of a site, aka, Politics.
+* Asset - An article/video/etc identified by URL.
+
+* Embed - Things we put on a asset: comment box, ToS, Stream, etc…
+* Stream - All the activity on a certain asset. Container for Comments, actions, user
+* Thread - defined by a parent and everything below. All replies to a comment and their replies, etc…
+* Comment - a kind of user-generated content submitted by a comment author
+ * A parent comment has replies to it
+ * A child comments is a reply to another comment
+ * A comment can be both a parent comment and a child of another comment
+ * A top-level comment is a comment that is not a reply to any other comment
+ * A nth-level comment refers to the number of replies away from the top-level comment
+
+* User - an item to represent a person using Talk. It could be a moderator, reader, etc.
+* User Roles:
+ * Active: some who takes action (logged in or not)
+ * Passive: some who just reads, no actions performed
+ * Comment Author: The user who wrote the comment
+ * Staff Member: someone who works for an organization (tagged for leverage in trust)
+ * Moderator: someone with the ability to access the moderation queue and perform moderation actions
+ * Administrator: has the ability to change the setup of their coral space
+* Public Profile: information about users shown in public
+* Private Profile: information about users shown only to user about themselves
+* Protected Profile: information about users that only moderators and admins can see
+
+* Queue - Group of items based on a query, aka - moderation queue
+* Target - The item/s on which an action is performed..
+
+## Actions
+
+Actions are performed by users on items. Actions themselves are items. This requires two relationships: action on item, and user performs action.
+
+### Flag
+* A Flagger(user) performs a Flag
+* A Flag is performed on a Comment or a username or profile content
+
+
+## Moderation Actions and Status
+
+Comments contain a field `status`. As moderation actions are peformed, the status changes.
+
+* Initial status is empty.
+* When a moderator Approves, the status is set to 'approved'.
+* When a moderator Rejects, the status is set to 'reject'.
+
+### Pre and post moderation
+
+Comments can be set to be premoderated or postmoderated.
+
+Premoderation means that moderation has to occur _before_ a comment is shown on the site:
+
+* New comments are shown in the moderator queues immediately.
+* The are not shown to users until (aka in streams) until they are approved by a moderator.
+
+Postmoderation means that comments appear on the site _before_ any moderation action is taken.
+
+* New comments appear in comment streams immediately.
+* New comments do not appear in moderation queues unless they are flagged by other users.
diff --git a/circle.yml b/circle.yml
index 9de9eae4c..b9cea6fed 100644
--- a/circle.yml
+++ b/circle.yml
@@ -8,6 +8,7 @@ test:
override:
- MOCHA_FILE=$CIRCLE_TEST_REPORTS/junit/test-results.xml ./node_modules/.bin/mocha tests --reporter mocha-junit-reporter
- npm run lint
+ - npm run build
deployment:
release:
diff --git a/client/coral-admin/.gitignore b/client/coral-admin/.gitignore
deleted file mode 100644
index 707c890e5..000000000
--- a/client/coral-admin/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-node_modules
-public/bundle.js
-public/embed/comment-stream
-.DS_Store
-npm-debug.log
-yarn.lock
diff --git a/client/coral-admin/config.json b/client/coral-admin/config.json
index c8f318cfc..156740de5 100644
--- a/client/coral-admin/config.json
+++ b/client/coral-admin/config.json
@@ -1,5 +1,3 @@
{
- "basePath": "admin",
- "talkHost": "http://localhost:16180",
- "xeniaHost": "http://localhost:16180"
+ "basePath": "admin"
}
diff --git a/client/coral-admin/config.sample.json b/client/coral-admin/config.sample.json
deleted file mode 100644
index 55d39db05..000000000
--- a/client/coral-admin/config.sample.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "basePath": "client/coral-admin"
-}
diff --git a/client/coral-admin/package.json b/client/coral-admin/package.json
deleted file mode 100644
index 048359526..000000000
--- a/client/coral-admin/package.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "coral-admin",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "build": "./node_modules/.bin/webpack --config webpack.config.js",
- "start": "./node_modules/.bin/webpack-dev-server --config webpack.config.dev.js --inline --hot --content-base public --port 3142"
- },
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "hammerjs": "2.0.8",
- "immutable": "3.8.1",
- "keymaster": "1.6.2",
- "material-design-lite": "1.2.1",
- "react": "^15.3.2",
- "react-dom": "^15.3.2",
- "react-mdl": "^1.7.2",
- "react-redux": "^4.4.5",
- "react-router": "^3.0.0",
- "redux": "3.6.0",
- "redux-thunk": "2.1.0",
- "timeago.js": "2.0.2"
- },
- "devDependencies": {
- "autoprefixer": "6.5.0",
- "babel-core": "^6.18.2",
- "babel-loader": "^6.2.7",
- "copy-webpack-plugin": "3.0.1",
- "css-loader": "0.25.0",
- "json-loader": "0.5.4",
- "postcss-loader": "0.13.0",
- "postcss-modules": "0.5.2",
- "precss": "1.4.0",
- "standard": "8.2.0",
- "style-loader": "0.13.1",
- "webpack": "^1.13.3",
- "webpack-dev-server": "1.16.1"
- }
-}
diff --git a/client/coral-admin/postcss.config.js b/client/coral-admin/postcss.config.js
deleted file mode 100644
index d5267160a..000000000
--- a/client/coral-admin/postcss.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- plugins: [
- require('postcss-smart-import')({ /* ...options */ }),
- require('precss')({ /* ...options */ }),
- require('autoprefixer')({ /* ...options */ })
- ]
-}
diff --git a/client/coral-admin/public/index.html b/client/coral-admin/public/index.html
deleted file mode 100644
index ef1adffec..000000000
--- a/client/coral-admin/public/index.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-