Skip to content

Commit

Permalink
Merge pull request #1 from secretin/new_server
Browse files Browse the repository at this point in the history
New server
  • Loading branch information
agix authored Jan 13, 2017
2 parents b12f3ba + 315b6a2 commit 514f404
Show file tree
Hide file tree
Showing 31 changed files with 1,470 additions and 1,118 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parser": "babel-eslint",
"extends": "airbnb-base",
"env": {
"browser": false,
"node": true,
"mocha": false
},
"globals": {
},
"rules": {
"no-throw-literal": 0
},
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ jspm_packages

# Optional REPL history
.node_repl_history

dist/
dist.tar.gz
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ EXPOSE 80

ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]

CMD [ "npm", "start", "80"]
CMD [ "npm", "start"]
3 changes: 2 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ version: '2'
services:
secretin-server:
environment:
TEST_SERVER: 1
TEST_SERVER: 1
SECRETIN_SERVER_COUCHDB_DBNAME: secretintest
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ services:
ports:
- "3000:80"
environment:
SECRETIN_SERVER_PORT: 80
SECRETIN_SERVER_REDIS_URL: redis://anonymous@redis:6379
SECRETIN_SERVER_COUCHDB_URL: http://couchdb:5984
SECRETIN_SERVER_COUCHDB_HOST: couchdb
SECRETIN_SERVER_COUCHDB_PORT: 5984
SECRETIN_SERVER_COUCHDB_PROTOCOL: http
SECRETIN_SERVER_COUCHDB_DBNAME: secretin
SECRETIN_SERVER_COUCHDB_AUTH: 0
depends_on:
- redis
- couchdb
46 changes: 35 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
{
"name": "secretin-server",
"version": "1.0.0",
"description": "",
"main": "server.js",
"description": "💾 Server side of Secretin. Keep your data safe.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "TEST_SERVER=1 nodemon -w src --exec \"npm run lint && babel-node src --presets es2015\"",
"build": "npm run lint && babel src -s -D -d dist --presets es2015",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npm run build && node dist",
"package": "npm run build && cp package.json dist/ && tar cvzf dist.tar.gz dist",
"lint": "eslint src/"
},
"author": "",
"license": "ISC",
"repository": {
"type": "git",
"url": "git+https://github.com/secretin/secretin-server.git"
},
"author": "agix",
"license": "MIT",
"bugs": {
"url": "https://github.com/secretin/secretin-server/issues"
},
"homepage": "https://github.com/secretin/secretin-server#readme",
"dependencies": {
"body-parser": "^1.12.4",
"bluebird": "^3.4.7",
"body-parser": "^1.15.2",
"cors": "^2.8.1",
"cradle": "^0.7.1",
"express": "^4.12.4",
"lodash": "^4.15.0",
"node-forge": "^0.6.29",
"redis": "^2.6.2",
"express": "^4.14.0",
"lodash": "^4.17.4",
"node-couchdb": "^1.1.0",
"node-forge": "^0.6.46",
"redis": "^2.6.3",
"speakeasy": "^2.0.0"
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.21.0",
"babel-eslint": "^7.1.1",
"babel-preset-es2015": "^6.18.0",
"eslint": "^3.12.2",
"eslint-config-airbnb-base": "^11.0.0",
"eslint-plugin-import": "^2.2.0",
"nodemon": "^1.11.0"
}
}
Loading

0 comments on commit 514f404

Please sign in to comment.