Browse Source

Initial setup

Herton 7 years ago
commit
7df710b7e8
3 changed files with 32 additions and 0 deletions
  1. 3 0
      .gitignore
  2. 8 0
      app.js
  3. 21 0
      package.json

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+node_modules
+.env
+.DS_Store

+ 8 - 0
app.js

@@ -0,0 +1,8 @@
+var express = require('express');
+var app = express();
+
+var port = process.env.TODO_APP_PORT || 3000;
+
+app.use('assets', express.static(__dirname + '/public'));
+
+app.listen(port);

+ 21 - 0
package.json

@@ -0,0 +1,21 @@
+{
+  "name": "simple-todo",
+  "version": "1.0.0",
+  "description": "Simple todo app with node/express and vue.js",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "repository": {
+    "type": "git",
+    "url": "ssh://git@git.hersidea.com:122/herton/simple-todo.git"
+  },
+  "author": "Herton",
+  "license": "ISC",
+  "devDependencies": {
+    "body-parser": "^1.18.2",
+    "ejs": "^2.5.7",
+    "express": "^4.16.2",
+    "mongoose": "^4.13.1"
+  }
+}