commit c7c9e956783daabae00b67fd66dc91a398889b3d Author: Linus Miller Date: Fri Feb 2 19:13:45 2018 +0100 Initial commit diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..dd44972 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +*.md diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..345bf3e --- /dev/null +++ b/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": [ + "standard" + ], + + "rules": { + "comma-dangle": [ 2, "always-multiline" ] + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0dcbc61 --- /dev/null +++ b/.gitignore @@ -0,0 +1,61 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Typescript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# Ignore for now +package-lock.json diff --git a/.tern-port b/.tern-port new file mode 100644 index 0000000..68a01d6 --- /dev/null +++ b/.tern-port @@ -0,0 +1 @@ +37923 \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9259161 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Linus Miller + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..0df7e6e --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# deem +Node built CLI for communicating with the deem API diff --git a/package.json b/package.json new file mode 100644 index 0000000..dc06426 --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "deem-app", + "version": "0.0.1", + "description": "", + "main": "server/server.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "lint": "eslint .", + "start": "node server/server.js" + }, + "repository": { + "type": "git", + "url": "git@gitlab.bitmill.co:lohfu/deem.git" + }, + "author": "Linus Miller (https://lohfu.io/)", + "license": "MIT", + "dependencies": { + "express": "^4.16.2", + "handlebar": "^1.0.0", + "knex": "^0.14.2", + "node-fetch": "^1.7.3" + }, + "devDependencies": { + "eslint": "^4.16.0", + "eslint-config-standard": "^11.0.0-beta.0", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-node": "^5.2.1", + "eslint-plugin-promise": "^3.6.0", + "eslint-plugin-standard": "^3.0.1" + } +} diff --git a/server/server.js b/server/server.js new file mode 100644 index 0000000..b9fff9d --- /dev/null +++ b/server/server.js @@ -0,0 +1,7 @@ +'use strict' + +const fetch = require('node-fetch') + +fetch('https://google.com') + .then((res) => res.text()) + .then((html) => console.log(html))