Giter Club home page Giter Club logo

papercups's Introduction

Papercups

Papercups is an open source live customer chat web app. We offer a hosted version at app.papercups.io.

You can check out how our chat widget looks and play around with customizing it on our demo page. The chat widget component is also open sourced at github.com/papercups-io/chat-widget.

Watch how easy it is to get set up with our Slack integration πŸš€ : slack-setup

One click Heroku deployment

Deploy

Philosophy

We wanted to make a self-hosted version of tools like Intercom and Drift for companies that have privacy and security concerns about having customer data going to third party services. We’re starting with chat right now but we want to expand into all forms of customer communication like email campaigns and push notifications.

Stay tuned! We'll be posting a more detailed roadmap soon πŸ€“

Getting started

Papercups runs on Elixir/Phoenix, with a TypeScript React app for the frontend.

If you haven't installed Elixir, Phoenix, NodeJS, and PostgresQL yet, you can find some great instructions here: https://hexdocs.pm/phoenix/installation.html

tl;dr:

mix local.hex
  • To check that we are on Elixir 1.6 and Erlang 20 or later, run:
elixir -v
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.6.3
  • Install the Phoenix application generator:
mix archive.install hex phx_new 1.5.4

Cloning the repo

git clone [email protected]:papercups-io/papercups.git
cd papercups

To start your server

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start the server with mix phx.server

This will automatically start up the React frontend in watch mode on localhost:3000, with the API running on localhost:4000.

To start client side

The frontend code will start up automatically when you run mix phx.server, but for more information see: assets/README.md

Running tests

Create a PostgreSQL test database named: chat_api_test, and run:

mix test

Setting up email alerts

Set the environment variables in the .env.example file.

At the moment we only support Mailgun β€” other messaging channels are coming soon!

Deploying

We currently use Heroku for deployments:

git push heroku master

Running compiler on file change

Note: Make sure you are running this inside of ChatApi otherwise it'll trigger on UI changes

./scripts/compile_watch.sh

Learn more about Phoenix

papercups's People

Contributors

reichert621 avatar cheeseblubber avatar ezhao avatar

Watchers

James Cloos avatar

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.