Skip to end of banner
Go to start of banner

How to setup mod-consortia locally

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Prerequisite - You will need these tools

  • Vagrant
  • PostgreSQL
  • Postman

Deploy module on Vagrant

Result:

default port 8081 for mod-consortia. your requests from postman collection (get list of tenant request) works expected

Create a tenant locally

If everything is working well until this step, Let's move on to creating tenants locally.

Theory:

Before creating a tenant, we need to understand what creating a tenant locally

If we create a new tenant, we will create schemas for this tenant.

These are tenants. if we enable the module for the tenant, it will create a new schema for this tenant

For example

  1. we created testtenant1
  2. enabled mod-user(mod-users-19.2.0-SNAPSHOT.221)
  3. new schema testtenant1_mod_user created inside Schemas

Mod-consortia stores tenant information inside the tenant table

Process:

  1. create consortium (it will be only one consortium)

  2. create tenant 

  3. enable tenant for module (mod_users)



    New schema will be created (testtenant1_mod_user → testtenant1 - tenant name, mod_user - enabled module)

This is how you can create tenants locally. After that If you want to do more operations with tenants locally look at this flow
deletion of user tenant associations - https://github.com/folio-org/mod-consortia/pull/24 (full flow documented with screenshot)


  • No labels