Skip to content

ZeroTherapy allows a counselor to create an AMA counseling session where participants can join a therapy session and ask questions anonymously, creating an open and safe environment. Audiences can also vote anonymously for questions to be answered (community moderation via anonymous voting).

License

Notifications You must be signed in to change notification settings

Pushpit07/ZeroTherapy

Repository files navigation

ZeroTherapy

ZeroTherapy allows a counselor to create an AMA counseling session where the audience can join and ask questions anonymously, creating an open and safe environment. Audiences can also vote anonymously for questions to be answered (community moderation via anonymous voting).

It leverages on Semaphore and zk-proofs to preserve the user’s identity.

Website: https://zerotherapy.vercel.app

Features

Counselor

  • create AMA counseling sessions which may be public or secured with an access code (ie. audience would need an access code to join the AMA counseling session - useful for clients or study groups where only clients/students can join, or corporate groups where only employees can join)
  • update status of the AMA counseling session
    • start: audience may join and post questions
    • pause: audience may join but cannot post questions
    • resume: audience may post questions
    • end: session has ended
  • list created AMA counseling sessions

Audience/Participant

  • list AMA counseling sessions that are paused/active (ie. ready for audiences to join)
  • join a public session or enter access code to join a private AMA session
  • post a question to an AMA counseling session anonymously
  • vote on other audience's questions anonymously

Testing

yarn test

Setup database (mysql)

Create two tables: ama_sessions and ama_questions. Run the create scripts in /scripts folder.

Rename .env.example to .env and input the database connection properties.

Test with Frontend UI

  • yarn install to install all dependencies
  • yarn dev to start a local node. Import a few of the test accounts into Metamask for testing purposes.
  • yarn deploy --network localhost to deploy the smart contracts to the local node.

Copy the AMA contract address to lib/config.json

Then, browse to http://localhost:3000 to access the frontend UI.

Deploy to Polygon Testnet

Run yarn deploy --network mumbai

Project Resources

Project template is forked from Semaphore Boilerplate.

About

ZeroTherapy allows a counselor to create an AMA counseling session where participants can join a therapy session and ask questions anonymously, creating an open and safe environment. Audiences can also vote anonymously for questions to be answered (community moderation via anonymous voting).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published