Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Prerequisite - You will need these tools

  • Vagrant
  • PostgreSQL
  • Postman

Deploy module on Vagrant

Result:
Image Modified

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

...

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)