Adrian Obelmejias
|
01d2007590
|
Update tests
|
2016-03-18 23:03:57 -04:00 |
|
Adrian Obelmejias
|
8ffe8a40ae
|
Replace object with proper array implementation
|
2016-03-18 22:59:01 -04:00 |
|
Adrian Obelmejias
|
9dfad9dca5
|
Add tests for authentication
|
2016-03-16 21:20:23 -04:00 |
|
Adrian Obelmejias
|
0f3384eb57
|
Fix import
|
2016-03-16 20:32:51 -04:00 |
|
Adrian Obelmejias
|
ae2bf52fcf
|
Remove old controllers
|
2016-03-16 20:28:41 -04:00 |
|
Adrian Obelmejias
|
e79a98f8da
|
Move auth controllers to new modules
|
2016-03-16 20:28:26 -04:00 |
|
Adrian Obelmejias
|
b08cef1ffc
|
Add DELETE /users/:id
|
2016-03-16 20:21:16 -04:00 |
|
Adrian Obelmejias
|
2d8e171d07
|
Add PUT /users/:id
|
2016-03-16 20:18:27 -04:00 |
|
Adrian Obelmejias
|
b10f6acf19
|
Update router generation with handlers
|
2016-03-16 20:18:00 -04:00 |
|
Adrian Obelmejias
|
462d584aa3
|
Add GET /users/:id route
|
2016-03-05 15:23:41 -05:00 |
|
Adrian Obelmejias
|
9f8a04e556
|
Add GET /users route
|
2016-03-05 15:13:41 -05:00 |
|
Adrian Obelmejias
|
1030f80360
|
Mount middleware stack per route
|
2016-03-05 15:11:02 -05:00 |
|
Adrian Obelmejias
|
d4434e2ef8
|
Module intializer - generates routes and connects to controller
|
2016-03-05 14:12:09 -05:00 |
|
Adrian Obelmejias
|
184451f9fc
|
Create router for /users
|
2016-03-05 13:38:08 -05:00 |
|
Adrian Obelmejias
|
a102abfef8
|
Change router import to module init
|
2016-03-05 13:36:57 -05:00 |
|
Adrian Obelmejias
|
ea33ef0cf2
|
Update version
|
2016-03-05 00:07:38 -05:00 |
|
Adrian Obelmejias
|
6ab4d0b946
|
Merge branch 'feature/docs'
|
2016-03-05 00:06:49 -05:00 |
|
Adrian Obelmejias
|
8e97911d4e
|
Update lint to ignore comments
|
2016-03-05 00:05:09 -05:00 |
|
Adrian Obelmejias
|
67455677d7
|
Update readme
|
2016-03-04 23:58:22 -05:00 |
|
Adrian Obelmejias
|
e96606acdb
|
Add docs for DELETE /users/:id
|
2016-03-04 23:46:25 -05:00 |
|
Adrian Obelmejias
|
ac7b8172ba
|
Add docs for PUT /users/:id
|
2016-03-04 23:43:03 -05:00 |
|
Adrian Obelmejias
|
2f0c87ce91
|
Set error name to Unauthorized-Error
|
2016-03-04 23:42:51 -05:00 |
|
Adrian Obelmejias
|
f5bfba49c5
|
Add docs for POST /users
|
2016-03-04 23:33:46 -05:00 |
|
Adrian Obelmejias
|
1b026949d2
|
Add docs for GET /user/:id
|
2016-03-04 23:23:25 -05:00 |
|
Adrian Obelmejias
|
1eae3a4c0e
|
Define auth error
|
2016-03-04 23:17:12 -05:00 |
|
Adrian Obelmejias
|
87ea94b739
|
Mount documentation on /docs
|
2016-03-04 23:05:54 -05:00 |
|
Adrian Obelmejias
|
0b16b62261
|
Clean up dependencies
|
2016-03-04 23:05:31 -05:00 |
|
Adrian Obelmejias
|
5aea701513
|
Change config/config.js to a default config/index.js
|
2016-03-04 22:40:39 -05:00 |
|
Adrian Obelmejias
|
f2183f9904
|
Move server.js entrypoint to bin directory
|
2016-03-04 22:27:33 -05:00 |
|
Adrian Obelmejias
|
f8504f86ba
|
Update auth docs
|
2016-03-04 22:26:21 -05:00 |
|
Adrian Obelmejias
|
ec2b1be7a6
|
Update dependencies
|
2016-03-04 22:25:44 -05:00 |
|
Adrian Obelmejias
|
7a81625c40
|
Add documentation for authentication route
|
2016-03-04 21:55:18 -05:00 |
|
Adrian Obelmejias
|
996d1a541e
|
Move apidoc config to package.json
|
2016-03-04 21:04:14 -05:00 |
|
Adrian Obelmejias
|
5c0cec3d9c
|
Add apidoc config
|
2016-03-04 21:01:13 -05:00 |
|
Adrian Obelmejias
|
feee6d41b8
|
Add generated docs dir to gitnore
|
2016-03-04 20:51:37 -05:00 |
|
Adrian Obelmejias
|
c61632750b
|
Bump version
|
2016-03-04 20:03:04 -05:00 |
|
Adrian Obelmejias
|
cb8f26fdc9
|
Split environment specific config into separate files
|
2016-03-04 20:02:38 -05:00 |
|
Adrian Obelmejias
|
275b8dfc5f
|
Fix missing comma
|
2016-02-17 19:27:53 -05:00 |
|
Adrian Obelmejias
|
3d04313a37
|
Lint
|
2016-02-17 19:27:37 -05:00 |
|
Adrian Obelmejias
|
bf212be661
|
Update docs
|
2016-02-17 19:15:43 -05:00 |
|
Adrian Obelmejias
|
3e2552c627
|
Change project name
|
2016-02-15 18:25:12 -05:00 |
|
Adrian Obelmejias
|
ba2a51efe5
|
Add tests for user deletion
|
2016-02-15 18:22:52 -05:00 |
|
Adrian Obelmejias
|
98ab1b8de6
|
Fix error handling for DEL method
|
2016-02-15 18:22:36 -05:00 |
|
Adrian Obelmejias
|
95f029c3e3
|
Fix error handling and return user within the user object or response
|
2016-02-15 18:19:39 -05:00 |
|
Adrian Obelmejias
|
e87f6264da
|
Add tests for /user/:id
|
2016-02-15 18:15:08 -05:00 |
|
Adrian Obelmejias
|
2138890f07
|
Throw 404 instead of 500 for cast error when fetching user
|
2016-02-15 18:14:43 -05:00 |
|
Adrian Obelmejias
|
995c2c5d60
|
Clean db before tests
|
2016-02-15 18:04:26 -05:00 |
|
Adrian Obelmejias
|
1dfc2fe826
|
Fix config prop name
|
2016-02-15 17:54:25 -05:00 |
|
Adrian Obelmejias
|
697c001075
|
Add tests for user sign up
|
2016-02-15 17:42:21 -05:00 |
|
Adrian Obelmejias
|
943b62dc76
|
Update dependencies
|
2016-02-15 17:32:26 -05:00 |
|
Adrian Obelmejias
|
44cab1b021
|
Add test config
|
2016-02-15 17:32:18 -05:00 |
|
Adrian Obelmejias
|
235e3caabe
|
Use glob function instead of Glob constructor
|
2016-02-15 17:11:57 -05:00 |
|
Adrian Obelmejias
|
989073056f
|
Remove user salt from deserialize
|
2016-02-15 17:08:51 -05:00 |
|
Adrian Obelmejias
|
85f6518262
|
Fix missing async keyword on query
|
2016-02-15 17:04:29 -05:00 |
|
Adrian Obelmejias
|
6910b04e91
|
Register controllers from glob
|
2016-02-15 16:52:40 -05:00 |
|
Adrian Obelmejias
|
f691bae41d
|
Make user CRUD route's protected behind auth
|
2016-02-15 16:37:00 -05:00 |
|
Adrian Obelmejias
|
409520d9f1
|
Moved middleware to middleware directory
|
2016-02-15 16:36:18 -05:00 |
|
Adrian Obelmejias
|
f3172adf77
|
Remove unnecesary error catching
|
2016-02-15 16:30:49 -05:00 |
|
Adrian Obelmejias
|
6f34ecf76a
|
Fix token name
|
2016-02-11 19:51:31 -05:00 |
|
Adrian Obelmejias
|
2dfa632747
|
Add dev mode with nodemon
|
2016-02-11 19:44:43 -05:00 |
|
Adrian Obelmejias
|
24db4c2b55
|
Fix promise not resolving
|
2016-02-11 19:36:17 -05:00 |
|
Adrian Obelmejias
|
d64742f36f
|
add auth routes
|
2016-02-11 19:27:49 -05:00 |
|
Adrian Obelmejias
|
59264a030e
|
Lint
|
2016-02-11 19:20:50 -05:00 |
|
Adrian Obelmejias
|
bffdd32550
|
Use promises for flatter code
|
2016-02-11 19:20:45 -05:00 |
|
Adrian Obelmejias
|
2e40b09bba
|
Made salt key not required
Mongoose's validation kept blocking the operation.
We need this to go through to the pre-save hook
|
2016-02-11 19:01:15 -05:00 |
|
Adrian Obelmejias
|
8b4cdd5886
|
Remove password and salt from response
|
2016-02-11 19:01:08 -05:00 |
|
Adrian Obelmejias
|
caa61db6b1
|
Add user validation middleware
|
2016-02-11 18:38:16 -05:00 |
|
Adrian Obelmejias
|
e2df9f7452
|
Add name to readme
|
2016-02-11 18:05:30 -05:00 |
|
Adrian Obelmejias
|
64ed3568a5
|
Add password validation to passport strategy
|
2016-02-11 17:55:41 -05:00 |
|
Adrian Obelmejias
|
35fc841fc7
|
Add password hashing
|
2016-02-11 17:55:16 -05:00 |
|
Adrian Obelmejias
|
de1bd615fa
|
Remove password from deserializeUser method of passport
|
2016-02-11 16:31:58 -05:00 |
|
Adrian Obelmejias
|
6818a473a9
|
Add user CRUD
|
2016-02-11 16:31:19 -05:00 |
|
Adrian Obelmejias
|
3bd799eba8
|
Add jwt
|
2016-02-11 16:31:09 -05:00 |
|
Adrian Obelmejias
|
4c8e9f6acc
|
Add passport
|
2016-02-11 16:21:05 -05:00 |
|
Adrian Obelmejias
|
443e48beb6
|
Add mongoose and create sample User schema
|
2016-02-11 16:20:48 -05:00 |
|
Adrian Obelmejias
|
0f0c903838
|
Update dependencies
|
2016-02-11 16:19:31 -05:00 |
|
Adrian Obelmejias
|
1dc5c07963
|
Update rules
|
2016-02-11 16:15:28 -05:00 |
|
Adrian Obelmejias
|
1b184617af
|
Add session support
|
2016-02-11 16:04:07 -05:00 |
|
Adrian Obelmejias
|
8db424da3e
|
Add koa logger
|
2016-02-11 15:59:51 -05:00 |
|
Adrian Obelmejias
|
6313446d9d
|
Lint
|
2016-02-11 15:43:51 -05:00 |
|
Adrian Obelmejias
|
bdc0e5a4e9
|
Add eslint
|
2016-02-11 15:43:21 -05:00 |
|
Adrian Obelmejias
|
1f48106dc9
|
Add start script
|
2016-02-11 15:17:46 -05:00 |
|
Adrian Obelmejias
|
f74a6140be
|
Add tests
|
2016-02-11 15:17:12 -05:00 |
|
Adrian Obelmejias
|
e117bbc67f
|
Move babel presets to .babelrc
|
2016-02-11 15:10:57 -05:00 |
|
Adrian Obelmejias
|
299cfdedda
|
Bootstrap server
|
2016-02-11 14:52:52 -05:00 |
|
Adrian Obelmejias
|
b32a30fa01
|
Add user controller
|
2016-02-11 14:52:03 -05:00 |
|
Adrian Obelmejias
|
04e154e4d8
|
Create error middleware
|
2016-02-11 14:51:46 -05:00 |
|
Adrian Obelmejias
|
fe820decc3
|
Entry point
|
2016-02-11 14:51:37 -05:00 |
|
Adrian Obelmejias
|
066895294d
|
Add config file for envs
|
2016-02-11 14:51:09 -05:00 |
|
Adrian Obelmejias
|
c0efee2505
|
Update dependencies
|
2016-02-11 14:50:53 -05:00 |
|
Adrian Obelmejias
|
a6e9fb6174
|
Add editor config
|
2016-02-11 14:28:00 -05:00 |
|
Adrian Obelmejias
|
17609b1521
|
Initial commit
|
2016-02-11 14:27:15 -05:00 |
|