diff --git a/.elasticbeanstalk/config.yml b/.elasticbeanstalk/config.yml deleted file mode 100644 index 7c64d9c..0000000 --- a/.elasticbeanstalk/config.yml +++ /dev/null @@ -1,12 +0,0 @@ -branch-defaults: - development: - environment: null - master: - environment: welunch -global: - application_name: welunch - default_ec2_keyname: null - default_platform: Node.js - default_region: eu-west-1 - profile: eb-cli - sc: git diff --git a/.gitignore b/.gitignore index 79c4736..4d64059 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,2 @@ /node_modules -# Elastic Beanstalk Files -.elasticbeanstalk/* -!.elasticbeanstalk/*.cfg.yml -!.elasticbeanstalk/*.global.yml + diff --git a/.sass-cache/62399a64454269352b2be9cd16cc9dc4a40915a1/app.scssc b/.sass-cache/62399a64454269352b2be9cd16cc9dc4a40915a1/app.scssc deleted file mode 100644 index 6181d54..0000000 Binary files a/.sass-cache/62399a64454269352b2be9cd16cc9dc4a40915a1/app.scssc and /dev/null differ diff --git a/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/font-awesome.min.scssc b/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/font-awesome.min.scssc deleted file mode 100644 index 110c57a..0000000 Binary files a/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/font-awesome.min.scssc and /dev/null differ diff --git a/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/foundation.scssc b/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/foundation.scssc deleted file mode 100644 index da9915f..0000000 Binary files a/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/foundation.scssc and /dev/null differ diff --git a/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/jtinder.scssc b/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/jtinder.scssc deleted file mode 100644 index 7c7d6e1..0000000 Binary files a/.sass-cache/9f1c8e25638368bb2ad151ca765ea24b4a16941e/jtinder.scssc and /dev/null differ diff --git a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/events.scssc b/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/events.scssc deleted file mode 100644 index 72599c8..0000000 Binary files a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/events.scssc and /dev/null differ diff --git a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/linkedin_button.scssc b/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/linkedin_button.scssc deleted file mode 100644 index 0b827d4..0000000 Binary files a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/linkedin_button.scssc and /dev/null differ diff --git a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/style.scssc b/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/style.scssc deleted file mode 100644 index 8870714..0000000 Binary files a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/style.scssc and /dev/null differ diff --git a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/tinderslide-overrides.scssc b/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/tinderslide-overrides.scssc deleted file mode 100644 index 719324c..0000000 Binary files a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/tinderslide-overrides.scssc and /dev/null differ diff --git a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/userIndex.scssc b/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/userIndex.scssc deleted file mode 100644 index bdfddc5..0000000 Binary files a/.sass-cache/d5524b188b61ab74cce34b76d926c63474549d22/userIndex.scssc and /dev/null differ diff --git a/app.js b/app.js index 0d501c2..b4c2673 100644 --- a/app.js +++ b/app.js @@ -23,18 +23,17 @@ app.set('view engine', 'ejs'); // Setup SASS directories var path = require('path'); -app.use(sassMiddleware({ - src: path.join(__dirname + '/sass'), - dest: path.join(__dirname + '/public/stylesheets'), - debug: true, - force: true, - prefix: '/stylesheets', - outputStyle: 'compressed', - outputStyle: 'expanded' - }), +// app.use(sassMiddleware({ +// src: path.join(__dirname + '/sass'), +// dest: path.join(__dirname + '/public/stylesheets'), +// debug: true, +// force: true, +// prefix: '/stylesheets', +// outputStyle: 'compressed' +// }), // The static middleware must come after the sass middleware - express.static(path.join(__dirname, 'public')) -) + app.use(express.static(__dirname + '/public')); + var databaseURL = process.env.MONGOLAB_URI ||'mongodb://localhost/welunch'; mongoose.connect(databaseURL); diff --git a/awscli-bundle.zip b/awscli-bundle.zip deleted file mode 100644 index 73e6c3a..0000000 Binary files a/awscli-bundle.zip and /dev/null differ diff --git a/awscli-bundle/install b/awscli-bundle/install deleted file mode 100755 index f75aded..0000000 --- a/awscli-bundle/install +++ /dev/null @@ -1,138 +0,0 @@ -#!/usr/bin/env python -# We're using optparse because we need to support 2.6 -# which doesn't have argparse. Given that argparse is -# a dependency that eventually gets installed, we could -# try to bootstrap, but using optparse is just easier. -import optparse -import os -import platform -import sys -import subprocess -import tarfile -import tempfile - -from contextlib import contextmanager - - -PACKAGES_DIR = os.path.join( - os.path.dirname(os.path.abspath(__file__)), 'packages') -INSTALL_DIR = os.path.expanduser(os.path.join( - '~', '.local', 'lib', 'aws')) - - -class BadRCError(Exception): - pass - - -@contextmanager -def cd(dirname): - original = os.getcwd() - os.chdir(dirname) - try: - yield - finally: - os.chdir(original) - - -def run(cmd): - sys.stdout.write("Running cmd: %s\n" % cmd) - p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, - stderr=subprocess.PIPE) - stdout, stderr = p.communicate() - if p.returncode != 0: - raise BadRCError("Bad rc (%s) for cmd '%s': %s" % ( - p.returncode, cmd, stdout + stderr)) - return stdout - - -def bin_path(): - """ - Get the system's binary path, either `bin` on reasonable - systems or `Scripts` on Windows. - """ - path = 'bin' - - if platform.system() == 'Windows': - path = 'Scripts' - - return path - - -def create_install_structure(working_dir, install_dir): - if not os.path.isdir(install_dir): - os.makedirs(install_dir) - _create_virtualenv(location=install_dir, working_dir=working_dir) - - -def _create_virtualenv(location, working_dir): - # working_dir is used (generally somewhere in /tmp) so that we - # don't modify the install/packages directories. - with cd(PACKAGES_DIR): - venv = [p for p in os.listdir('.') if p.startswith('virtualenv')][0] - compressed = tarfile.open(venv) - compressed.extractall(path=working_dir) - compressed.close() - with cd(working_dir): - # We know that virtualenv is the only dir in this directory - # so we can listdir()[0] it. - with cd(os.listdir('.')[0]): - run('%s virtualenv.py --python %s %s' % (sys.executable, - sys.executable, - location)) - - -def create_working_dir(): - d = tempfile.mkdtemp() - return d - - -def pip_install_packages(install_dir): - cli_tarball = [p for p in os.listdir(PACKAGES_DIR) - if p.startswith('awscli')] - assert len(cli_tarball) == 1 - cli_tarball = cli_tarball[0] - pip_script = os.path.join(install_dir, bin_path(), 'pip') - - with cd(PACKAGES_DIR): - run('%s install --no-index --find-links file://%s %s' % ( - pip_script, PACKAGES_DIR, cli_tarball)) - - -def create_symlink(real_location, symlink_name): - if os.path.isfile(symlink_name): - print("Symlink already exists: %s" % symlink_name) - print("Removing symlink.") - os.remove(symlink_name) - symlink_dir_name = os.path.dirname(symlink_name) - if not os.path.isdir(symlink_dir_name): - os.makedirs(symlink_dir_name) - os.symlink(real_location, symlink_name) - return True - - -def main(): - parser = optparse.OptionParser() - parser.add_option('-i', '--install-dir', help="The location to install " - "the AWS CLI. The default value is ~/.local/lib/aws", - default=INSTALL_DIR) - parser.add_option('-b', '--bin-location', help="If this argument is " - "provided, then a symlink will be created at this " - "location that points to the aws executable. " - "This argument is useful if you want to put the aws " - "executable somewhere already on your path, e.g. " - "-b /usr/local/bin/aws. This is an optional argument. " - "If you do not provide this argument you will have to " - "add INSTALL_DIR/bin to your PATH.") - opts = parser.parse_args()[0] - working_dir = create_working_dir() - create_install_structure(working_dir, opts.install_dir) - pip_install_packages(opts.install_dir) - real_location = os.path.join(opts.install_dir, bin_path(), 'aws') - if opts.bin_location and create_symlink(real_location, opts.bin_location): - print("You can now run: %s --version" % opts.bin_location) - else: - print("You can now run: %s --version" % real_location) - - -if __name__ == '__main__': - main() diff --git a/awscli-bundle/packages/argparse-1.2.1.tar.gz b/awscli-bundle/packages/argparse-1.2.1.tar.gz deleted file mode 100644 index f060222..0000000 Binary files a/awscli-bundle/packages/argparse-1.2.1.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/awscli-1.8.0.tar.gz b/awscli-bundle/packages/awscli-1.8.0.tar.gz deleted file mode 100644 index b2f3cda..0000000 Binary files a/awscli-bundle/packages/awscli-1.8.0.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/botocore-1.1.11.tar.gz b/awscli-bundle/packages/botocore-1.1.11.tar.gz deleted file mode 100644 index f71ff0d..0000000 Binary files a/awscli-bundle/packages/botocore-1.1.11.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/colorama-0.3.3.tar.gz b/awscli-bundle/packages/colorama-0.3.3.tar.gz deleted file mode 100644 index a926e8b..0000000 Binary files a/awscli-bundle/packages/colorama-0.3.3.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/docutils-0.12.tar.gz b/awscli-bundle/packages/docutils-0.12.tar.gz deleted file mode 100644 index 7f1411d..0000000 Binary files a/awscli-bundle/packages/docutils-0.12.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/jmespath-0.7.1.tar.gz b/awscli-bundle/packages/jmespath-0.7.1.tar.gz deleted file mode 100644 index 48044fa..0000000 Binary files a/awscli-bundle/packages/jmespath-0.7.1.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/ordereddict-1.1.tar.gz b/awscli-bundle/packages/ordereddict-1.1.tar.gz deleted file mode 100644 index 2955c19..0000000 Binary files a/awscli-bundle/packages/ordereddict-1.1.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/pyasn1-0.1.8.tar.gz b/awscli-bundle/packages/pyasn1-0.1.8.tar.gz deleted file mode 100644 index 7a08316..0000000 Binary files a/awscli-bundle/packages/pyasn1-0.1.8.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/python-dateutil-2.4.2.tar.gz b/awscli-bundle/packages/python-dateutil-2.4.2.tar.gz deleted file mode 100644 index 494d5f4..0000000 Binary files a/awscli-bundle/packages/python-dateutil-2.4.2.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/rsa-3.1.4.tar.gz b/awscli-bundle/packages/rsa-3.1.4.tar.gz deleted file mode 100644 index 99c3189..0000000 Binary files a/awscli-bundle/packages/rsa-3.1.4.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/simplejson-3.3.0.tar.gz b/awscli-bundle/packages/simplejson-3.3.0.tar.gz deleted file mode 100644 index bfeb025..0000000 Binary files a/awscli-bundle/packages/simplejson-3.3.0.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/six-1.9.0.tar.gz b/awscli-bundle/packages/six-1.9.0.tar.gz deleted file mode 100644 index d479e9d..0000000 Binary files a/awscli-bundle/packages/six-1.9.0.tar.gz and /dev/null differ diff --git a/awscli-bundle/packages/virtualenv-13.0.3.tar.gz b/awscli-bundle/packages/virtualenv-13.0.3.tar.gz deleted file mode 100644 index d8f8207..0000000 Binary files a/awscli-bundle/packages/virtualenv-13.0.3.tar.gz and /dev/null differ diff --git a/config/passport.js b/config/passport.js index 3097581..89aeb04 100644 --- a/config/passport.js +++ b/config/passport.js @@ -76,7 +76,7 @@ module.exports = function(passport, app){ passport.use('linkedin', new LinkedInStrategy({ clientID: process.env.LINKEDIN_API_KEY, clientSecret: process.env.LINKEDIN_SECRET_KEY, - callbackURL: "http://localhost:8000/api/users/auth/linkedin/callback", + callbackURL: "/api/users/auth/linkedin/callback", scope: ['r_emailaddress', 'r_basicprofile'], state: true // profileFields : ['id','emails', 'location', 'industry'] diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index cea089b..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,24 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ 'node', '/usr/local/bin/npm', 'start' ] -2 info using npm@2.10.1 -3 info using node@v0.12.4 -4 verbose stack Error: missing script: start -4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:142:19) -4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:58:5 -4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:345:5 -4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:309:45) -4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:343:3) -4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:113:5) -4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:300:12 -4 verbose stack at evalmachine.:334:14 -4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:102:5 -4 verbose stack at FSReqWrap.oncomplete (evalmachine.:95:15) -5 verbose cwd /Users/Evan/Desktop/development/GA_WDI/projects/project-3 -6 error Darwin 14.5.0 -7 error argv "node" "/usr/local/bin/npm" "start" -8 error node v0.12.4 -9 error npm v2.10.1 -10 error missing script: start -11 error If you need help, you may report this error at: -11 error -12 verbose exit [ 1, true ]