A multitenantStack in beego, backend only, using postgres
Go to file
2018-11-07 20:23:46 +01:00
conf initial 2018-11-06 12:31:49 +01:00
controllers jwt validation, getting the correct database 2018-11-07 20:13:26 +01:00
database/seeds Moving files and adding auth 2018-11-07 11:10:51 +01:00
models Require an ORM in all models 2018-11-07 20:23:46 +01:00
routers adding error handling and other things 2018-11-07 16:27:39 +01:00
services jwt validation, getting the correct database 2018-11-07 20:13:26 +01:00
swagger Moving files and adding auth 2018-11-07 11:10:51 +01:00
tests jwt validation, getting the correct database 2018-11-07 20:13:26 +01:00
.gitignore Moving files and adding auth 2018-11-07 11:10:51 +01:00
bee.json adding error handling and other things 2018-11-07 16:27:39 +01:00
Dockerfile Adding generated dockerfile 2018-11-06 13:02:44 +01:00
lastupdate.tmp jwt validation, getting the correct database 2018-11-07 20:13:26 +01:00
main.go Require an ORM in all models 2018-11-07 20:23:46 +01:00
Readme.md jwt validation, getting the correct database 2018-11-07 20:13:26 +01:00

MutlitenantStack

This is a project to demonstrate multi tenancy usage in beego using postgres and separated databases

The api was scaffolded using:

bee api multitenantStack -driver=postgres -conn="host=127.0.0.1 port=5435 user=postgres password=postgre dbname=company_template sslmode=disable"

then `bee run -downdoc=true``

To regenerate docs simply run bee generate docs

TODO

  • company controller, create databases and so on
  • Update not found to json
  • load db connections from config