Coder Social home page Coder Social logo

binarytemple / apalachin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joaomilho/apalachin

0.0 2.0 0.0 2.83 MB

An Erlang's ChicagoBoss websockets team chat, using Cowboy server and PostgreSQL

Shell 6.86% Erlang 59.17% CSS 12.44% JavaScript 9.30% HTML 12.22%

apalachin's Introduction

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 begginer.
  • 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 http://www.chicagoboss.org/ChicagoBoss-0.8.7.tar.gz
    tar -xvf ChicagoBoss-0.8.7.tar.gz
    cd ChicagoBoss
    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.exemple 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

apalachin's People

Watchers

Bryan Hunt avatar 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.