diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..924a3c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules +.env +Dockerfile +docker-compose.yml +.idea \ No newline at end of file diff --git a/app.json b/app.json new file mode 100644 index 0000000..11226a2 --- /dev/null +++ b/app.json @@ -0,0 +1,8 @@ +{ + "name": "Node.js Water Server", + "description": "Server for water", + "repository": "https://github.com/gtg092x/water-server", + "logo": "http://node-js-sample.herokuapp.com/node.svg", + "keywords": ["node", "express"], + "image": "heroku/nodejs" +} \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..4ed6407 --- /dev/null +++ b/index.js @@ -0,0 +1,11 @@ +var express = require('express'); +var app = express(); +var port = (process.env.PORT || 5000); + +app.get('/', function (req, res) { + res.send('Hello World!'); +}); + +app.listen(port, function () { + console.log('Example app listening on port ' + port); +}); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..f11bf05 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "remoteserver", + "version": "1.0.0", + "description": "", + "main": "index.js", + "dependencies": { + "bookshelf": "^0.9.1", + "express": "^4.13.3", + "knex": "^0.9.0", + "pg": "^4.4.3", + "sqlite3": "^3.1.1" + }, + "devDependencies": { + "babel-cli": "^6.4.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/gtg092x/water-server" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/server/connect.js b/server/connect.js new file mode 100644 index 0000000..e69de29