The UserService owns user and consultant accounts, enquiries, counselling sessions, session lists, and the application-side lifecycle of Matrix rooms.
It most importantly covers the lifecycle of a consultation/session:
- registration of new users/askers
- handling and creation of enquiries
- creation of associated sessions and encrypted Matrix rooms
- assignment of consultants and Matrix room memberships
Furthermore it handles the different kinds of consultations:
- single/direct 1:1 counseling
- team counseling
- group chat counseling
- anonymous counseling (no registration requried)
In addition to that it provides different lists of sessions for consultants and askers:
- asker sessions
- enquiries/anonymous enquiries
- sessions directly assigned to consultant
- team sessions
- group chats
Moreover it also offers different workflows for deactivating expired group chats, deactivating old anonymous user accounts and deleting user accounts. On top of that the UserService includes useful admin API calls to administrate user accounts.
The service refuses to start when certain environment variables are unset, so a first local run needs them before anything else:
cp config.env.example config.env # then fill every CHANGE_MEconfig.env.example lists every variable the service will not start without,
with a comment on each explaining what guards it. The reasoning behind those
guards, and where to add the next required variable, is in
docs/required-environment.md; the database
migration settings specifically are covered in
docs/schema-migrations.md.
The full local setup — Java version, run script, frontend pairing — is in
documentation/local-development.md.
In the project documentation you'll find information for setting up and running the project. The UserService documentation index links to the current Matrix architecture, operational contracts and local testing guides.
The project is licensed under the AGPLv3 which you'll find here.
Please have a look at our Code of Conduct before participating in the community.
Please read our contribution guidelines before contributing to this project.