Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.34 KB

RUNNING_CHAT_LOCALLY_DOCKER.md

File metadata and controls

37 lines (25 loc) · 1.34 KB

Running Locally with Docker (Recommended)

Chat has been containerized and loads automatically as apart of docker-compose up

Chat Config overrides can be setup in chatconfig/config.json

  • email, notifications, plugins, etc

Gitcoin Oauth Dummy Credentials are created when you boot up the app the first time and the fixtures run. The fixtures can be found over at app/fixtures/oauth_application

NOTE

If you need to configure a new oauth application visit: oAuth Provider Administration an you will have to update the GitCoinSettings key in config/config.json file with the new application keys created above.

  1. Create a new database named 'chat' if you haven't already, docker-compose exec db sh -c 'createdb -U postgres chat'

  2. Login into chat

  3. Create two new teams:

    • name Gitcoin, slug /gitcoin
    • name Hackathons, slug /hackathon
  4. Connect to mattermost database and extract the id and set them in app/app/.env them

GITCOIN_HACK_CHAT_TEAM_ID=
GITCOIN_CHAT_TEAM_ID=
  1. Create a new Bot Account via here Ensure the bot account has role SYSTEM ADMIN

  2. Copy the token and and update app/app/.env

CHAT_DRIVER_TOKEN=

Restart Gitcoin Web with updated env variables