Coder Social home page Coder Social logo

joburgalex / botmetrics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from howdyai/botmetrics

0.0 1.0 0.0 14.61 MB

Open Source, Secure Conversation Analytics for Chat and Voice bots

Home Page: https://www.getbotmetrics.com

License: Other

Ruby 83.09% CoffeeScript 2.12% JavaScript 0.17% CSS 2.00% HTML 12.41% Shell 0.22%

botmetrics's Introduction

Botmetrics

Botmetrics is the easy, secure, open-source way for you to measure and engage with your chat-bot users.

Botmetrics works natively with Messenger, Slack and Kik bots with support for other messaging platforms coming soon.

CircleCI

Deploy

Analytics

With Botmetrics, you can get analytics for your bot with very little code, and native SDKs available in

Metrics

Insights

You can gain more insight into the users using your bot and perform sophisticated queries to find out who they are.

Analyze

Notifications

You can gain more insight into the users using your bot and send then re-engagement notifications based on pre-selected criteria.

Notifications

Quick Installation

You can deploy Botmetrics with one click to your Heroku account.

Deploy

One-click deployment to Amazon AWS, Google Cloud and Microsoft Azure is coming soon!

Updating your Heroku installation

  1. Clone the repo to your local computer.
  2. Setup a Heroku git remote for your local instance heroku git:remote -a <your-app-name>
  3. For the first time, you will need to run git push -f heroku master
  4. For subsequent updates, run git pull --rebase origin master && git push heroku master
  5. Run heroku run rake db:migrate for database migrations that need to happen.

Installation on your own Linux server

  1. Make sure you have Ruby 2.3.1 installed along with Rubygems (make sure you have libxslt-dev, libxml2-dev, libpq-dev installed on your machine).
  2. Setup the .env file by running cp .env-example .env
  3. Replace JSON_WEB_TOKEN_SECRET with your own randomized secret.
  4. Replace DATABASE_URL and REDIS_URL with URLs to your Postgres and Redis database URLs respectively. (Postgres and Redis can be on the same machine or different machines).
  5. Run ./script/server to start the server.

Development

  1. cp .env-example .env
  2. Start Redis & Postgres (there's a ./script/redis and ./script/dbstart command that lets you do this easily)
  3. Run ./script/dbreset to reset the database (creates a new one, loads schema and runs rake db:seed)
  4. Run ./script/server to start the server
  5. Visit localhost:3000

Contributing

Wiki

Extra information can be found in the wiki.

Roadmap

The Botmetrics Roadmap can be seen here.

CircleCI

CircleCI

Running Botmetrics with Docker Compose

  1. Install Docker
  2. Edit docker-compose.yml to update all the instances of JSON_WEB_TOKEN_SECRET, REDIS_URL and DATABASE_URL
  3. Get the database ready with docker-compose run web bundle exec rake db:reset
  4. Bring up the services with docker-compose up in the botmetrics project directory.
  5. Goto localhost:3000 Enjoy!

Deploying Botmetrics to AWS with Convox

Convox is an easy way to deploy dockerized applications to AWS

  1. Sign up for Convox, Install a Rack and Convox CLI.
  2. In your botmetrics directory issue the following commands: convox apps create to create an application called botmetrics
  3. convox services create postgres && convox services create redis this will provision a Postgres and Redis Service on AWS (Go get a coffee.)
  4. Once convox has finished creating the app you can start you first deploy with convox deploy
  5. Set the environment variables for Redis and Postgres
    1. convox services will list the names of the postgres and redis service instances.
    2. convox service info <service name> will provide the URL for each service.
    3. Use convox env set REDIS_URL=<url_from_redis_service> and convox env set DATABASE_URL=<url_from_redis_service>
    4. Note the final release ID
  6. After convox deploy from step 5 has finished promote the release with the ENV variables with convox releases promote <release_id>
  7. Setup your database for the first time with convox run web rake db:structure:load db:seed
  8. Get the public URL for your app with convox apps info it's the one that's on port 80
  9. Browse to the URL and Enjoy!

Stay Connected

Follow Botmetrics on Twitter to get the latest updates.

Read the Botmetrics Blog for more How tos, success stories and more.

botmetrics's People

Contributors

arunthampi avatar juanitofatas avatar mwarkentin avatar sandeep avatar vlad-shevtsov-mev avatar winston avatar

Watchers

 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.