3
0

144 Commits

Author SHA1 Message Date
Tit Petric
fdf2f6ca41 autogen: docs update 2018-07-16 00:39:41 +02:00
Tit Petric
5aae6e9001 upd(all): move rest implementation into subpkg 2018-07-16 00:35:01 +02:00
Tit Petric
7d11062c3c add(crm, sam): service layer, subpackages 2018-07-16 00:14:50 +02:00
Tit Petric
b68337c111 upd(codegen): generate subpackages 2018-07-16 00:13:45 +02:00
Tit Petric
657ef15cf5 fix: codegen template path update 2018-07-13 20:28:28 +02:00
Tit Petric
837c10e448 update(all): moved codegen to root /codegen 2018-07-13 17:47:05 +02:00
Tit Petric
b65a9ab396 use go build directly 2018-07-13 14:35:57 +02:00
Tit Petric
2b3dcf16b5 generate authenticator 2018-07-13 14:26:17 +02:00
Tit Petric
c01c75f420 add authenticators 2018-07-13 14:22:36 +02:00
Tit Petric
b186b94033 update codegen for crm 2018-07-13 14:02:55 +02:00
Tit Petric
c963dd7a2f support typed url params, add create handlers 2018-07-13 13:37:55 +02:00
Tit Petric
70fcdb1f42 make dep.update 2018-07-13 13:29:50 +02:00
Tit Petric
37f40682ab update codegen 2018-07-13 13:23:31 +02:00
Tit Petric
0d25af4434 regenerate readme with docs 2018-07-13 13:22:42 +02:00
Tit Petric
e48be7d8e6 update specs 2018-07-13 13:22:10 +02:00
Denis Arh
0ed147639f Add product description to README.md 2018-07-13 10:30:20 +02:00
Denis Arh
6676d3a37c Implement channel CRUD++
/channel/remove changed to /channel/delete (pending /channel/:id)
2018-07-12 20:03:47 +02:00
Denis Arh
ae14c23225 Apply new templates (form parsing, db tag) to all structs & requests 2018-07-12 19:35:47 +02:00
Denis Arh
fd8efa0b2a Always generate db tag (either from dbname or name) 2018-07-12 19:33:24 +02:00
Denis Arh
d7d7ac3208 Add call to ParseForm() to get values from POST payload 2018-07-12 19:18:31 +02:00
Denis Arh
efb42bd036 Extended channel struct to cover all (db) fields 2018-07-12 19:01:49 +02:00
Denis Arh
d4c6020174 Add support for .dbname for struct generator 2018-07-12 19:01:19 +02:00
Denis Arh
2039032dc8 Add /create endpoint, merge /archive & /move with /edit 2018-07-12 18:31:47 +02:00
Denis Arh
9c0da01c8c Fix watcher's path for realize 2018-07-12 18:31:07 +02:00
Denis Arh
bdd14dd4d7 README file with setup instructions, first draft 2018-07-12 17:40:43 +02:00
Denis Arh
fca62c8f5f Add .env file reading capabilties and ability to config sam via env variables
For dsn & addr: explicit config via flag has priority over env variables. Final failsafe is hardcoded default values

Env variables:
 - SAM_DB_DSN
 - SAM_HTTP_ADDR
2018-07-12 17:36:54 +02:00
Denis Arh
61aaf45c04 Makefile cleanup & structurize
- makefile is now divided in sections
 - remove separate test.sh and added 3 additional tasks (qa, qa.test & qa.vet)
 - add realize tool (watch & rebuild) along with .realize.yaml config
2018-07-12 17:33:35 +02:00
Denis Arh
ed8482c803 Remove .env and add .env.sample with sample values 2018-07-12 17:31:04 +02:00
Denis Arh
25f04617f2 Add .editorconfig 2018-07-12 17:30:17 +02:00
Denis Arh
cecbcd0f2f /.* for .gitignore 2018-07-12 17:23:29 +02:00
Denis Arh
7cbe00dd3b Fix make spec task 2018-07-12 09:00:38 +02:00
Denis Arh
ac8735945c Add deps & protoc to makefile
Took 11 minutes
2018-07-11 20:32:19 +02:00
Denis Arh
661f5d4e94 Makefile for specs generation
Took 2 minutes


Took 2 minutes
2018-07-11 20:18:09 +02:00
Denis Arh
b75becd960 Add pointer from chan to the last msg, add messages_queue table 2018-07-11 20:17:19 +02:00
Tit Petric
81b6f2e608 print debug route info on startup, alike gin/debug. 2018-07-10 14:59:05 +00:00
Tit Petric
7c6b6048ce refenerate routes 2018-07-10 14:46:38 +00:00
Tit Petric
aa6b3e9461 update debug routes 2018-07-10 14:46:06 +00:00
Tit Petric
3be3a81865 print debug routes 2018-07-10 16:02:11 +02:00
Tit Petric
9f8e63f749 Merge branch 'master' of ssh://github.com/crusttech/crust 2018-07-06 11:24:50 +00:00
Tit Petric
37f85060ec add project name, makefile 2018-07-06 11:24:41 +00:00
Denis Arh
44df058e1d Remove broken tests, keep sample test file
Took 28 minutes
2018-07-06 13:00:49 +02:00
Tit Petric
504e799ba8 Merge branch 'master' of ssh://github.com/crusttech/crust 2018-07-06 10:57:26 +00:00
Tit Petric
b30a722a7b update generator, code with warnings 2018-07-06 10:56:26 +00:00
Denis Arh
f9e91bd5a9 Add Dockerfile, .dockerignore
Took 1 hour 25 minutes
2018-07-06 12:49:33 +02:00
Tit Petric
ab943146d3 add warnings about codegen 2018-07-06 10:47:31 +00:00
Tit Petric
bc1f3aeb4c fix constructors, skip password compare as it's a complex type 2018-07-06 10:32:07 +00:00
Tit Petric
4d62ca3290 fix rename websocket 2018-07-06 10:23:53 +00:00
Tit Petric
da66927241 update vendor 2018-07-06 10:20:51 +00:00
Tit Petric
788de33607 regenerate everything from spec 2018-07-06 10:19:05 +00:00
Tit Petric
0a5179edfb update specs docs for autogen 2018-07-06 10:18:26 +00:00