Skip to content

Commit

Permalink
feat(Mongoose): Add mongoDB auth. Closes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Dec 20, 2020
1 parent 6e20656 commit 3ce1cf9
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 130 deletions.
39 changes: 21 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,29 @@ dist: xenial
services: mongodb
language: node_js
node_js: 14
before_script:
- sleep 15
- mongo werewolves-assistant --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
install:
- npm install
- npm run lint
- npm run test
- npm install
- npm run lint
- npm run test
addons:
ssh_known_hosts: vps514431.ovh.net
ssh_known_hosts: vps514431.ovh.net
deploy:
- provider: script
skip_cleanup: true
script: bash ./deploy/deploy-production.sh
on:
branch: master
- provider: script
skip_cleanup: true
script: bash ./deploy/deploy-sandbox.sh
on:
branch: staging
- provider: script
skip_cleanup: true
script: bash ./deploy/deploy-production.sh
on:
branch: master
- provider: script
skip_cleanup: true
script: bash ./deploy/deploy-sandbox.sh
on:
branch: staging
notifications:
slack:
secure: hg+pX4FhfFKfenZWfO81yt/6GxKVSgUrN2iUY0zz7WfRaD3/RAnNod+t5iioJx7zPmna04tY0RN1gGK7czBFWnMm41yz7oLYDQ0BnaaWdQlkTrtB+Ol9lG0uz515Vn70VvYenuEGrRPyw3TIYQH91FVUMuVgmktauvge6T5N0+kbIVwDCRF5fkr6C03YE2Ms7a7yPKJVfZuMSKhSkmUpmoUi3x3dKC0JBm2n40G7D7Nhixmfqegv0QuHBOEnv2ueNF8V0336pvoBskcYrW6mmCAD1eUfynaj7XNL2/cp76A43oF9YjNn7sta28r5AaSbIYJtRwn3JX/uyvXGOSyr7X6tNmdctEXyPeXHxqnZvJOZ4zY4DzR4qei1sD5kvtTj68l9FzloapWsqz9rH3u//7Kg17sEsPJ/ZAtEdqvJWbsPfIDsB5RIpjE/WAYnOHMa87Mly4M+W+U2fJJ2+AW/lWj1fPaWAVBdzcCcfrfMLWQhn0LJJgigfgjDXD9vltTJ6wKlL6IFYe3hZe5fwBNcpjZ0R4TGwSpgttXBShBrjPBgmT0ItjFQ7AlpY30VkYjq2anzoMEftTEKR07d7EUXgF0kN5ilV2qOF4j7h6+2kJAJ/0298qXnv92qTGW954dcFCZRQFppSuFCfNe8v33L4dPexC5jsK2x+feYRZu6+wo=
slack:
secure: hg+pX4FhfFKfenZWfO81yt/6GxKVSgUrN2iUY0zz7WfRaD3/RAnNod+t5iioJx7zPmna04tY0RN1gGK7czBFWnMm41yz7oLYDQ0BnaaWdQlkTrtB+Ol9lG0uz515Vn70VvYenuEGrRPyw3TIYQH91FVUMuVgmktauvge6T5N0+kbIVwDCRF5fkr6C03YE2Ms7a7yPKJVfZuMSKhSkmUpmoUi3x3dKC0JBm2n40G7D7Nhixmfqegv0QuHBOEnv2ueNF8V0336pvoBskcYrW6mmCAD1eUfynaj7XNL2/cp76A43oF9YjNn7sta28r5AaSbIYJtRwn3JX/uyvXGOSyr7X6tNmdctEXyPeXHxqnZvJOZ4zY4DzR4qei1sD5kvtTj68l9FzloapWsqz9rH3u//7Kg17sEsPJ/ZAtEdqvJWbsPfIDsB5RIpjE/WAYnOHMa87Mly4M+W+U2fJJ2+AW/lWj1fPaWAVBdzcCcfrfMLWQhn0LJJgigfgjDXD9vltTJ6wKlL6IFYe3hZe5fwBNcpjZ0R4TGwSpgttXBShBrjPBgmT0ItjFQ7AlpY30VkYjq2anzoMEftTEKR07d7EUXgF0kN5ilV2qOF4j7h6+2kJAJ/0298qXnv92qTGW954dcFCZRQFppSuFCfNe8v33L4dPexC5jsK2x+feYRZu6+wo=
before_install:
- openssl aes-256-cbc -K $encrypted_ae4bfc95fd3d_key -iv $encrypted_ae4bfc95fd3d_iv
-in deploy/deploy-key.enc -out deploy/deploy-key -d
- openssl aes-256-cbc -K $encrypted_ae4bfc95fd3d_key -iv $encrypted_ae4bfc95fd3d_iv
-in deploy/deploy-key.enc -out deploy/deploy-key -d
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

### 📦 Packages

* `@sentry/node` updated to version `5.29.0`.
* `eslint` updated to version `7.15.0`.
* `@sentry/node` updated to version `5.29.2`.
* `eslint` updated to version `7.16.0`.
* `express-validator` updated to version `6.8.0`.
* `mongoose` updated to version `5.11.7`.
* `mongoose` updated to version `5.11.8`.
* `validator` updated to version `13.5.2`.

---
Expand Down
181 changes: 75 additions & 106 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"devDependencies": {
"chai": "^4.2.0",
"chai-http": "^4.3.0",
"eslint": "^7.15.0",
"eslint": "^7.16.0",
"mocha": "^8.2.1",
"nodemon": "^2.0.6"
},
"dependencies": {
"@sentry/node": "^5.29.0",
"@sentry/node": "^5.29.2",
"apidoc": "^0.25.0",
"bcrypt": "^5.0.0",
"body-parser": "^1.19.0",
Expand All @@ -47,7 +47,7 @@
"jsonwebtoken": "^8.5.1",
"migrate-mongo": "^8.1.4",
"mongo-dot-notation": "^2.0.0",
"mongoose": "^5.11.7",
"mongoose": "^5.11.8",
"passport": "^0.4.1",
"passport-http": "^0.3.0",
"passport-jwt": "^4.0.0",
Expand Down

0 comments on commit 3ce1cf9

Please sign in to comment.