Git Product home page Git Product logo

modmail's Introduction

modmail

About

You can read all about the bot here.

Self hosting

This repository contains source code for the bot itself under packages/bot and for its HTTP API under packages/api. Self hosting the API is unsupported and not recommended, and if you plan on exposing it to the internet you'll also need an instance of the base ChatSift API, which can be found in the dashboard repo. It only offers CRUD over configuration and basic data as it's mostly intended for our dashboard.

A Docker image that can be used for running anything in this monorepo is available on DockerHub under chatsift/modmail.


With all those notices out of the way, the docker-compose.yml file is probably the easiest way to get started.

Before you do anything else (even if you're using Docker), make sure to run yarn --immutable. If you don't have yarn installed, npm i -g yarn (assuming you have a nodejs installation).

Simply create a new file called .env, follow the example from .env.example, and then docker-compose build && docker-compose up -d.

Now that the bot and postgres server are up, run yarn deploy-commands to register the global slash commands, and then yarn prisma migrate deploy to get the database ready.

Alternatively, you can run your own postgresql instance, build the code with yarn build, and start up the bot using yarn start-bot in whatever way keeps it online (e.g. pm2).


Updating a self-hosted instance

Assuming you're using Docker, you essentially just need to follow the steps above again. docker-compose build && docker-compose up -d, re-deploy slash commands, and deploy prisma migrations.

Contributing/working on the project

Just about everything above, except set the NODE_ENV env var to dev. If you're trying to figure out something wrong with cron jobs, DEBUG_JOBS=true.

Licensing

This project is lincensed under the GNU AGPLv3 license. View the full file here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.