├── .gitignore ├── README.md ├── app.js ├── bin └── www ├── config └── config.json ├── migrations ├── 20200401090711-create-organization.js ├── 20200401090845-create-user.js └── 20200402081802-create-account.js ├── models ├── account.js ├── index.js ├── organization.js └── user.js ├── package.json ├── passport.js ├── routes ├── auth.js ├── organization.js ├── signup.js └── user.js └── src ├── organization ├── organization_controller.js ├── organization_dataprovider.js └── organization_service.js ├── signup ├── signup_controller.js ├── signup_dataprovider.js └── signup_service.js ├── user ├── user_controller.js ├── user_dataprovider.js └── user_service.js └── utils ├── cli.js ├── common.js ├── dbconnector.js ├── logger.js └── responder.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | log -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/app.js -------------------------------------------------------------------------------- /bin/www: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/bin/www -------------------------------------------------------------------------------- /config/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/config/config.json -------------------------------------------------------------------------------- /migrations/20200401090711-create-organization.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/migrations/20200401090711-create-organization.js -------------------------------------------------------------------------------- /migrations/20200401090845-create-user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/migrations/20200401090845-create-user.js -------------------------------------------------------------------------------- /migrations/20200402081802-create-account.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/migrations/20200402081802-create-account.js -------------------------------------------------------------------------------- /models/account.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/models/account.js -------------------------------------------------------------------------------- /models/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/models/index.js -------------------------------------------------------------------------------- /models/organization.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/models/organization.js -------------------------------------------------------------------------------- /models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/models/user.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/package.json -------------------------------------------------------------------------------- /passport.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/passport.js -------------------------------------------------------------------------------- /routes/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/routes/auth.js -------------------------------------------------------------------------------- /routes/organization.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/routes/organization.js -------------------------------------------------------------------------------- /routes/signup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/routes/signup.js -------------------------------------------------------------------------------- /routes/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/routes/user.js -------------------------------------------------------------------------------- /src/organization/organization_controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/organization/organization_controller.js -------------------------------------------------------------------------------- /src/organization/organization_dataprovider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/organization/organization_dataprovider.js -------------------------------------------------------------------------------- /src/organization/organization_service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/organization/organization_service.js -------------------------------------------------------------------------------- /src/signup/signup_controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/signup/signup_controller.js -------------------------------------------------------------------------------- /src/signup/signup_dataprovider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/signup/signup_dataprovider.js -------------------------------------------------------------------------------- /src/signup/signup_service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/signup/signup_service.js -------------------------------------------------------------------------------- /src/user/user_controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/user/user_controller.js -------------------------------------------------------------------------------- /src/user/user_dataprovider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/user/user_dataprovider.js -------------------------------------------------------------------------------- /src/user/user_service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/user/user_service.js -------------------------------------------------------------------------------- /src/utils/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/utils/cli.js -------------------------------------------------------------------------------- /src/utils/common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/utils/common.js -------------------------------------------------------------------------------- /src/utils/dbconnector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/utils/dbconnector.js -------------------------------------------------------------------------------- /src/utils/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/utils/logger.js -------------------------------------------------------------------------------- /src/utils/responder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniccan/multi-tenant-node-app/HEAD/src/utils/responder.js --------------------------------------------------------------------------------