All Projects â†’ joaomilho â†’ apalachin

joaomilho / apalachin

Licence: other
💬 An Erlang's ChicagoBoss websockets team chat, using Cowboy server and PostgreSQL

Programming Languages

erlang
1774 projects
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Batchfile
5799 projects

Apalachin

A websockets team chat built with Erlang's ChicagoBoss, using Cowboy server and PostgreSQL.

Goal of the project

  • Have a working example of many features of ChicagoBoss, including websockets, for the beginner.
  • Be as easy to mantain as possible.
  • Be stupidly fast.
  • Have a working version using Elixir also.

Look & feel

Apalachin look and feel

Install

  1. Install Erlang (version R15B03 +). You can also use brew install erlang if you're on MacOS.

  2. Download and install ChicagoBoss:

    wget wget https://github.com/ChicagoBoss/ChicagoBoss/archive/v0.8.19.tar.gz
    tar -xvf v0.8.19.tar.gz
    cd ChicagoBoss-0.8.19
    make
  3. Clone Apalachin:

    git clone [email protected]:joaomilho/apalachin.git
    cd apalachin
  4. Copy boss.config.example to boss.config, then edit the file changing the path of ChicagoBoss and your database setup:

    cp boss.config.example boss.config
    vi boss.config
  5. Run in dev mode:

    ./init-dev.sh
  6. Migrate (run inside project's erlang console) and generate some users:

    > boss_migrate:run(chat).
    > User = person:new(id, "Al Capone", "[email protected]", "1234").
        > User:save().
    > User = person:new(id, "Joe Barber", "[email protected]", "1234").
        > User:save().
  7. Open your [modern] browser on http://localhost:8001, sign in, and have fun!

Roadmap

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].