diff --git a/.gitignore b/.gitignore index b04d1df..5e0d84d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,13 +4,13 @@ logs #Ignore our built files build/* -architecture.json # Ignore sensitive stuff -/config/* -!/config/default.json +config/local.json node_modules storage .idea *.swp + +todo.md \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a29b5db..0000000 --- a/Dockerfile +++ /dev/null @@ -1,29 +0,0 @@ -FROM node:latest - -MAINTAINER David Hudson - -# System update -RUN apt-get -q -y update - -RUN apt-get -q -y install npm -RUN apt-get -q -y install mongodb - -RUN apt-get clean && rm -r /var/lib/apt/lists/* - -EXPOSE 22 -EXPOSE 8000 - -ADD start.sh /start.sh -RUN chmod +x /start.sh - -VOLUME ["/opt/apps"] -COPY . /opt/apps/naturalcrit/ -WORKDIR /opt/apps/naturalcrit/ - -RUN npm install -RUN npm install -g gulp-cli -RUN npm install gulp -RUN gulp fresh - -CMD ["/start.sh"] - diff --git a/client/admin/architecture.json b/client/admin/architecture.json new file mode 100644 index 0000000..a9e38ff --- /dev/null +++ b/client/admin/architecture.json @@ -0,0 +1,22 @@ +{ + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\admin\\homebrewAdmin\\brewSearch.jsx": [ + "react", + "lodash", + "classnames", + "superagent" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\admin\\homebrewAdmin\\homebrewAdmin.jsx": [ + "react", + "lodash", + "classnames", + "superagent", + "moment", + "./brewSearch.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\admin\\admin.jsx": [ + "react", + "lodash", + "classnames", + "./homebrewAdmin/homebrewAdmin.jsx" + ] +} \ No newline at end of file diff --git a/client/homebrew/architecture.json b/client/homebrew/architecture.json new file mode 100644 index 0000000..dd75586 --- /dev/null +++ b/client/homebrew/architecture.json @@ -0,0 +1,221 @@ +{ + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\userPage\\brewItem\\brewItem.jsx": [ + "react", + "lodash", + "classnames", + "moment" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\metadataEditor\\metadataEditor.jsx": [ + "react", + "lodash", + "classnames", + "superagent" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\brewRenderer\\errorBar\\errorBar.jsx": [ + "react", + "lodash", + "classnames" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\magic.gen.js": [ + "lodash" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\classfeature.gen.js": [ + "lodash" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\monsterblock.gen.js": [ + "lodash" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\classtable.gen.js": [ + "lodash" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\coverpage.gen.js": [ + "lodash" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\tableOfContents.gen.js": [ + "lodash" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\fullclass.gen.js": [ + "lodash", + "./classfeature.gen.js", + "./classtable.gen.js" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippets\\snippets.js": [ + "./magic.gen.js", + "./classfeature.gen.js", + "./monsterblock.gen.js", + "./classtable.gen.js", + "./coverpage.gen.js", + "./tableOfContents.gen.js", + "./fullclass.gen.js" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\snippetbar\\snippetbar.jsx": [ + "react", + "lodash", + "classnames", + "./snippets/snippets.js" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\printPage\\printPage.jsx": [ + "react", + "lodash", + "classnames", + "naturalcrit/markdown.js" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\shared\\naturalcrit\\markdown.js": [ + "lodash", + "marked" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\brewRenderer\\brewRenderer.jsx": [ + "react", + "lodash", + "classnames", + "./errorBar/errorBar.jsx", + "naturalcrit/markdown.js" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\navbar\\account.navitem.jsx": [ + "react", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\navbar\\navbar.jsx": [ + "react", + "lodash", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\navbar\\print.navitem.jsx": [ + "react", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\sharePage\\sharePage.jsx": [ + "react", + "lodash", + "classnames", + "../../navbar/issue.navitem.jsx", + "../../brewRenderer/brewRenderer.jsx", + "../../navbar/account.navitem.jsx", + "../../navbar/navbar.jsx", + "../../navbar/print.navitem.jsx", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\newPage\\newPage.jsx": [ + "react", + "lodash", + "classnames", + "superagent", + "../../navbar/navbar.jsx", + "../../navbar/issue.navitem.jsx", + "../../navbar/account.navitem.jsx", + "../../brewRenderer/brewRenderer.jsx", + "../../editor/editor.jsx", + "naturalcrit/markdown.js", + "naturalcrit/nav/nav.jsx", + "naturalcrit/splitPane/splitPane.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\navbar\\recent.navitem.jsx": [ + "react", + "lodash", + "classnames", + "moment", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\errorPage\\errorPage.jsx": [ + "react", + "lodash", + "classnames", + "../../navbar/navbar.jsx", + "../../navbar/issue.navitem.jsx", + "../../navbar/patreon.navitem.jsx", + "../../navbar/recent.navitem.jsx", + "../../brewRenderer/brewRenderer.jsx", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\shared\\naturalcrit\\codeEditor\\codeEditor.jsx": [ + "react", + "lodash", + "classnames", + "codemirror", + "codemirror/mode/gfm/gfm.js", + "codemirror/mode/javascript/javascript.js" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\editor\\editor.jsx": [ + "react", + "lodash", + "classnames", + "./metadataEditor/metadataEditor.jsx", + "./snippetbar/snippetbar.jsx", + "naturalcrit/codeEditor/codeEditor.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\navbar\\patreon.navitem.jsx": [ + "react", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\homePage\\homePage.jsx": [ + "react", + "lodash", + "classnames", + "superagent", + "../../navbar/navbar.jsx", + "../../navbar/issue.navitem.jsx", + "../../editor/editor.jsx", + "../../navbar/account.navitem.jsx", + "../../brewRenderer/brewRenderer.jsx", + "../../navbar/recent.navitem.jsx", + "naturalcrit/nav/nav.jsx", + "naturalcrit/splitPane/splitPane.jsx", + "../../navbar/patreon.navitem.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\shared\\naturalcrit\\splitPane\\splitPane.jsx": [ + "react", + "lodash", + "classnames" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\userPage\\userPage.jsx": [ + "react", + "lodash", + "classnames", + "../../navbar/navbar.jsx", + "../../navbar/recent.navitem.jsx", + "../../navbar/account.navitem.jsx", + "./brewItem/brewItem.jsx", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\shared\\naturalcrit\\svg\\naturalcrit.svg.jsx": [ + "react" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\shared\\naturalcrit\\nav\\nav.jsx": [ + "react", + "lodash", + "classnames", + "naturalcrit/svg/naturalcrit.svg.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\navbar\\issue.navitem.jsx": [ + "react", + "naturalcrit/nav/nav.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\pages\\editPage\\editPage.jsx": [ + "react", + "lodash", + "classnames", + "superagent", + "../../navbar/print.navitem.jsx", + "../../navbar/account.navitem.jsx", + "../../navbar/navbar.jsx", + "../../brewRenderer/brewRenderer.jsx", + "naturalcrit/markdown.js", + "naturalcrit/nav/nav.jsx", + "../../editor/editor.jsx", + "naturalcrit/splitPane/splitPane.jsx", + "../../navbar/issue.navitem.jsx" + ], + "C:\\Dropbox\\root\\Programming\\Javascript\\homebrewery\\client\\homebrew\\homebrew.jsx": [ + "react", + "lodash", + "classnames", + "pico-router", + "./pages/printPage/printPage.jsx", + "./pages/sharePage/sharePage.jsx", + "./pages/newPage/newPage.jsx", + "./pages/errorPage/errorPage.jsx", + "./pages/homePage/homePage.jsx", + "./pages/userPage/userPage.jsx", + "./pages/editPage/editPage.jsx" + ] +} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 90b6e82..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; - -var vitreumTasks = require("vitreum/tasks"); -var gulp = require("gulp"); - - -var gulp = vitreumTasks(gulp, { - entryPoints: [ - './client/homebrew', - './client/admin' - ], - - DEV: true, - buildPath: "./build/", - pageTemplate: "./client/template.dot", - projectModules: ["./shared/naturalcrit","./shared/codemirror"], - additionalRequirePaths : ['./shared', './node_modules'], - assetExts: ["*.svg", "*.png", "*.jpg", "*.pdf", "*.eot", "*.otf", "*.woff", "*.woff2", "*.ico", "*.ttf"], - serverWatchPaths: ["server"], - serverScript: "server.js", - libs: [ - "react", - "react-dom", - "lodash", - "classnames", - - //From ./shared - "codemirror", - "codemirror/mode/gfm/gfm.js", - 'codemirror/mode/javascript/javascript.js', - - "moment", - "superagent", - "marked", - "pico-router", - "pico-flux" - ], - clientLibs: [], -}); - - -var rename = require('gulp-rename'); -var less = require('gulp-less'); -gulp.task('phb', function(){ - gulp.src('./client/homebrew/phbStyle/phb.style.less') - .pipe(less()) - .pipe(rename('phb.standalone.css')) - .pipe(gulp.dest('./')); -}) - diff --git a/start.sh b/start.sh deleted file mode 100644 index 5cb4099..0000000 --- a/start.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -cd /opt/apps/naturalcrit/ -/usr/bin/mongod --config /etc/mongodb.conf & -gulp