Prerequisite - You will need these tools
- Vagrant
- PostgreSQL
- Postman
Deploy module on Vagrant
- Thunderjet - Onboarding plan
- How to run folio backend modules with IntelliJ Idea and interact with Vagrant box environment
- Vagrantfile (use this file as an example. it includes Kafka port, PostgreSQL port and some extra functionalities which help vagrant works smoothly)
- Postman Collection for Mod-Consortia (it include all basic API request) - Redeploy-mod-consortia.postman_collection.json
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
...
Mod-consortia stores tenant information inside the tenant table
Process:
- create consortium (it will be only one consortium)
- create tenantÂ
- enable tenant for module (mod_users)
New schema will be created (testtenant1_mod_user → testtenant1 - tenant name, mod_user - enabled module)