294 Commits

Author SHA1 Message Date
Robert Schäfer
0185f743e8 Update README with a warning and fix package.json 2019-01-02 15:59:32 +01:00
Robert Schäfer
7634234afd Match error message in tests with production code 2019-01-02 15:16:01 +01:00
Robert Schäfer
ffafd72c79 Merge remote-tracking branch 'Gerald1614/500_error_on_login' into 49_fix_no_user_with_that_email 2019-01-02 15:09:13 +01:00
Robert Schäfer
ec5cebf90f DRY code with ES6 2019-01-02 14:56:55 +01:00
Robert Schäfer
70320f3c04 Undo mocks 2019-01-02 14:43:31 +01:00
Grzegorz Leoniec
b1987d7f1a
Merge branch 'master' into 500_error_on_login 2019-01-02 13:58:52 +01:00
Grzegorz Leoniec
27cd718342
Merge branch 'master' into 49_fix_no_user_with_that_email 2019-01-02 13:55:53 +01:00
Robert Schäfer
a0b42d9061 Properly reproduce #49 2019-01-02 13:38:51 +01:00
Robert Schäfer
23b454025a Implement user factory and database clean up 2019-01-02 13:14:28 +01:00
dependabot[bot]
a6251183c6
Merge pull request #90 from Human-Connection/dependabot/npm_and_yarn/@babel/preset-env-7.2.3 2019-01-02 11:22:40 +00:00
dependabot[bot]
3f6fa66bdd
Bump @babel/preset-env from 7.2.0 to 7.2.3
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.2.0 to 7.2.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.2.0...v7.2.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 11:10:31 +00:00
dependabot[bot]
93392e0dd7
Merge pull request #91 from Human-Connection/dependabot/npm_and_yarn/@babel/cli-7.2.3 2019-01-02 11:07:28 +00:00
dependabot[bot]
42006c51bc
Bump @babel/cli from 7.2.0 to 7.2.3
Bumps [@babel/cli](https://github.com/babel/babel) from 7.2.0 to 7.2.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.2.0...v7.2.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 10:53:45 +00:00
Grzegorz Leoniec
f420708f70
Merge pull request #79 from Human-Connection/dependabot/npm_and_yarn/@babel/node-7.2.2
Bump @babel/node from 7.2.0 to 7.2.2
2019-01-02 11:51:30 +01:00
dependabot[bot]
9ff227d28f
Bump @babel/node from 7.2.0 to 7.2.2
Bumps [@babel/node](https://github.com/babel/babel) from 7.2.0 to 7.2.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.2.0...v7.2.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-31 19:19:28 +00:00
Gerald Michelant
2959eeb931 rewritting of login method 2018-12-30 16:44:08 -05:00
Gerald Michelant
1e949f3fde throw new AuthenticationError on password error 2018-12-28 22:17:28 -05:00
Gerald Michelant
93d821825b capture error in readable format with try and catch 2018-12-27 17:21:18 -05:00
Robert Schäfer
7593a094e0
Merge pull request #92 from Toverto/change-db-scripts
Change db scripts to run nodemon instead of node
2018-12-26 17:19:44 +01:00
Toverto
bd59f916b0
Remove the build instruction for seeding the db in README.md 2018-12-26 16:19:40 +01:00
Grzegorz Leoniec
469dd67447
Merge branch 'master' into 49_fix_no_user_with_that_email 2018-12-24 16:49:53 +01:00
Toverto
cd651b07fa
Change db scripts to run nodemon instead of node
this way you don't have to run yarn run build before seeding the db
2018-12-23 19:30:15 +01:00
Robert Schäfer
ec9c205bee Export a function in server.js and test teardown 2018-12-21 00:37:58 +01:00
Robert Schäfer
6b216be05c Add @mattwr18's code and fix linting 2018-12-21 00:03:57 +01:00
Grzegorz Leoniec
88341f5fce
Merge pull request #89 from Kachulio1/patch-1
Update README.md
2018-12-20 23:16:46 +01:00
kachulio1
e58e228f0c remove supertest 2018-12-20 22:44:52 +03:00
Joseph
01c4090792
Update README.md
add build command before db:seed
2018-12-20 22:18:18 +03:00
kachulio1
2ccbb1ca92 add supertest 2018-12-20 20:39:48 +03:00
Robert Schäfer
f15fb0bb1f Sketch a test to expose #49 2018-12-20 18:01:55 +01:00
Robert Schäfer
eaef67fad3 Replace mocha with jest
To have a consisten test runner in both repos (Nitro-Web and
Nitro-Backend)
2018-12-20 17:55:03 +01:00
Grzegorz Leoniec
f47b136232
Merge pull request #84 from Human-Connection/update_env_template
Fix 'audience must be a string or array'
2018-12-19 11:25:49 +01:00
Robert Schäfer
9eef9bc81c Fix 'audience must be a string or array'
I ran into this issue after setting up the installation locally.
2018-12-19 10:06:00 +01:00
Grzegorz Leoniec
618368cefe
Merge pull request #82 from Human-Connection/dependabot/npm_and_yarn/sanitize-html-1.20.0
Bump sanitize-html from 1.19.3 to 1.20.0
2018-12-18 16:25:54 +01:00
dependabot[bot]
acd1197ca1
Bump sanitize-html from 1.19.3 to 1.20.0
Bumps [sanitize-html](https://github.com/punkave/sanitize-html) from 1.19.3 to 1.20.0.
- [Release notes](https://github.com/punkave/sanitize-html/releases)
- [Changelog](https://github.com/punkave/sanitize-html/blob/master/CHANGELOG.md)
- [Commits](https://github.com/punkave/sanitize-html/compare/1.19.3...1.20.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-18 04:20:24 +00:00
Grzegorz Leoniec
5f133a2d48
Merge pull request #81 from Human-Connection/dependabot/npm_and_yarn/apollo-link-http-1.5.9
Bump apollo-link-http from 1.5.8 to 1.5.9
2018-12-17 10:32:30 +01:00
Grzegorz Leoniec
082e305dbd
Merge pull request #78 from Human-Connection/dependabot/npm_and_yarn/nodemon-1.18.9
Bump nodemon from 1.18.8 to 1.18.9
2018-12-17 10:31:04 +01:00
dependabot[bot]
b8a89c9fac
Bump apollo-link-http from 1.5.8 to 1.5.9
Bumps [apollo-link-http](https://github.com/apollographql/apollo-link) from 1.5.8 to 1.5.9.
- [Release notes](https://github.com/apollographql/apollo-link/releases)
- [Changelog](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-link/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-17 04:41:28 +00:00
dependabot[bot]
cdda79fd2e
Bump nodemon from 1.18.8 to 1.18.9
Bumps [nodemon](https://github.com/remy/nodemon) from 1.18.8 to 1.18.9.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v1.18.8...v1.18.9)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-17 04:39:16 +00:00
Grzegorz Leoniec
1539d9ac91
Merge pull request #75 from Human-Connection/dependabot/npm_and_yarn/apollo-server-2.3.1
Bump apollo-server from 2.2.6 to 2.3.1
2018-12-16 18:27:42 +01:00
dependabot[bot]
f992a13632
Bump apollo-server from 2.2.6 to 2.3.1
Bumps [apollo-server](https://github.com/apollographql/apollo-server) from 2.2.6 to 2.3.1.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-16 17:17:38 +00:00
Grzegorz Leoniec
cf8ed1ceb3
Merge pull request #74 from Human-Connection/dependabot/npm_and_yarn/apollo-link-http-1.5.8
Bump apollo-link-http from 1.5.7 to 1.5.8
2018-12-16 18:12:38 +01:00
Grzegorz Leoniec
3fc7044676
moved npm-run-all and wait-on from dev to prod dependencies as they are needed for seeding 2018-12-15 13:40:17 +01:00
Grzegorz Leoniec
aed2a73d13
Merge pull request #72 from Human-Connection/multistage-build
Reduce image size with multistage builds
2018-12-15 11:18:14 +01:00
Robert Schäfer
779190f711 Run yarn run dev in development 2018-12-14 23:41:11 +01:00
Robert Schäfer
94eea091de Ensure stage builder is used for testing
But avoid synced volumes, otherwise the deployment will crash because
Travis cannot clean up files just before entering the deployment.
2018-12-14 23:25:52 +01:00
Robert Schäfer
4e816d9020 Fix (?) the build with an image tag for builder
Also I added a base stage so we can have a common working directory.
2018-12-14 23:10:48 +01:00
dependabot[bot]
6d0f69eb75
Bump apollo-link-http from 1.5.7 to 1.5.8
Bumps [apollo-link-http](https://github.com/apollographql/apollo-link) from 1.5.7 to 1.5.8.
- [Release notes](https://github.com/apollographql/apollo-link/releases)
- [Changelog](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-link/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-14 21:44:40 +00:00
Robert Schäfer
bef8aa1d6a Reduce docker image size with multistage build
We don't need development dependencies in production. I also added the
BUILD_COMMIT environment variable to the image for convenience.
2018-12-14 22:41:13 +01:00
Robert Schäfer
f9fec054d6
Merge pull request #70 from Human-Connection/production-build
Build application for production without nodemon
2018-12-14 22:39:03 +01:00
Robert Schäfer
9f78a96de2 Run babel node instead of nodemon
Quote of @appinteractive:
```
Currently we are running nodemon on production which watches for filechanges and consumes much more memory then just node. As nodemon is only for development, I added a build step to compile the application for production and then only run the dist folder with pure node.
```
2018-12-14 22:30:47 +01:00