-
Notifications
You must be signed in to change notification settings - Fork 10
Chore/149448565/write documentation #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…-models Chore/148443911/create database models
Merge Staging
Merge staging to master
Finishes #149340967
chore(finish): add CI tools badges
update documents, users and search spec files with new jwt token add .codeclimate.yml update .travis.yml update readme Finishes #149346335
chore(finish): fix README
encapsulate the tokens edit .codeclimate.yml edit .travis.yml edit readme Finishes #149386955
chore(finish): abstract tokens
edit helper.js and jwt.js edit user, document models edit users test edit readme add admin privileges Finishes #149448565
Changes Unknown when pulling 8951b4a on chore/149448565/write-documentation into ** on staging**. |
[](https://travis-ci.org/codejockie/document-manager) | ||
[](https://codeclimate.com/github/codejockie/document-manager) | ||
[](https://coveralls.io/github/codejockie/document-manager?branch=master) | ||
[](https://codeclimate.com/github/codejockie/document-manager/coverage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the essence of having two coverage badges in your README
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason in particular?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason, just a way of getting familiar with using both.
env: | ||
global: | ||
secure: dNoO3Vkh6g4IpO3jRODy1UKa1tr4wLtbAKWbWxGdRcnPcgvKlwCNlVD0T7YMQf8RTsGUoBPDE+kEO/0RXDyjf7VVnkqUOpfAy74fw7ZiOHdHJvfHMFUIoXdQYdYiwjSmyNScxrINngXt5fp8MGqeUCMmLAEqHnQT+qTcIjIfN2Oj+2XrDxH5XsJQLWbZDReANOpvVU/xgoOD01KdJP31H/UsH2xp1YVUdfkAWG8CpxmBmJhehrOAIN/pv2n87fKPugn24F64UAZrKYKKwt/T3PJ7Jyr0f3TXwl+jhZxvcIakxfhaMJfSZjHR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this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a secret and as such should not be here. You don't even need this much in your .travis.yml
file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it's an encrypted secret that can only be interpreted by Travis CI
tests/routes/documents.spec.js
Outdated
chai.use(chaiHttp); | ||
|
||
const authToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJrZW5uZWR5Lm53YW9yZ3VAYW5kZWxhLmNvbSIsInVzZXJuYW1lIjoiY29kZWpvY2tpZSIsImlhdCI6MTUwMDY2MTAwMywiZXhwIjoxNTAwOTIwMjAzfQ.8x36eu9hgEGkrWCYcH2ImA2z7N7OXtzOazVRM0GlaEA'; | ||
const authToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJrZW5uZWR5Lm53YW9yZ3VAYW5kZWxhLmNvbSIsInVzZXJuYW1lIjoiY29kZWpvY2tpZSIsImlhdCI6MTUwMDcyODYxMCwiZXhwIjoxNTMyMjY0NjEwfQ.mn1ns_DZzP7vZKYR7_0EWm-8-HF_jk59jCQCmI0V6WY'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these tokens can be hidden in your .env
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done that, it's on the master branch already. Good you noticed.
chai.use(chaiHttp); | ||
|
||
const authToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJrZW5uZWR5Lm53YW9yZ3VAYW5kZWxhLmNvbSIsInVzZXJuYW1lIjoiY29kZWpvY2tpZSIsImlhdCI6MTUwMDcyODYxMCwiZXhwIjoxNTMyMjY0NjEwfQ.mn1ns_DZzP7vZKYR7_0EWm-8-HF_jk59jCQCmI0V6WY'; | ||
const authToken = process.env.AUTH_TOKEN; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
#149448565 write api documentation