Coder Social home page Coder Social logo

baoku6600 / libretaxi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ro31337/libretaxi

0.0 0.0 0.0 949 KB

Open source Uber #deleteuber

Home Page: https://t.me/libretaxi_bot

License: GNU Affero General Public License v3.0

Shell 2.39% Go 97.61%

libretaxi's Introduction

LibreTaxi v2

LibreTaxi is open-source Uber proof-of-concept that works through Telegram.

See it in action: https://t.me/libretaxi_bot

Public feed: https://t.me/libretaxi_all

It is closer to Craigslist rideshare rather than Uber, but it works, and works great! The app that is easy to use, supports multiple languages, fast and cool. There are tens of thousands users worldwide, and we're on the way to 1M users. So please spread the word!

Prerequisites

  1. Install Go
  2. Install Go dep
  3. Download the repo to ~/go/src/libretaxi
  4. Install Docker with docker-compose
  5. Run PostgreSQL and RabbitMQ with default credentials (see connection strings below)
docker-compose up -d

Setting up RabbitMQ (for development and production)

rabbitmq:3-management contains UI plugin for queue management. Plugin port is 8080 (15672 in container). Login guest/guest.

Login to RabbitUI here: http://localhost:8080

There is only one queue at the moment:

Note that there is one message producer, and one message consumer threads (goroutines) in application.

Port 5672 is RabbitMQ itself.

LibreTaxi settings

Init settings for ./libretaxi.yml:

telegram_token: YOUR_TOKEN
db_conn_str: postgres://libretaxi:libretaxi@localhost:15432/libretaxi
rabbit_url: amqp://127.0.0.1:8079/
admin_channel_chat_id: -1001324105405
public_channel_chat_id: -1001470847849

Admin channel is the place where you shadow ban spamers. See https://stackoverflow.com/a/41779623/337085 for how to get id for you private channel. You'll need to invite @get_id_bot and type /my_id@get_id_bot. You'll see chat id.

Running

When all services are running, run libretaxi:

dep ensure # or ~/go/bin/dep ensure
go build
./libretaxi

๐ŸŒŸ Project Sponsors

Shown below are our bronze, silver and gold project sponsors. Big thanks to these companies for supporting the project. Note: Listed services are not tested, vetted nor supported by the author(s) in any manner.

Gold sponsors

Prevent workplace conflicts with this Slack app:

Prevent workplace conflicts

Become a sponsor!

View all sponsors

libretaxi's People

Contributors

ro31337 avatar liftair 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.