GithubHelp home page GithubHelp logo

gandalfini / lila_shell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremyevans/lila_shell

0.0 0.0 0.0 98 KB

Simple chat app using roda-message_bus

JavaScript 56.91% Ruby 34.44% CSS 1.45% HTML 7.20%

lila_shell's Introduction

Lila Shell

Lila Shell is a simple chat app that serves as an example of using roda-message_bus.

Demo

A demo site is available at http://lilashell-demo.jeremyevans.net

Setup

The server is written in Ruby, so the first step is installing Ruby.

After installing Ruby, install the dependencies:

gem install -g Gemfile

The server requires a PostgreSQL backend. It's recommended you set up an application specific server and database, and you can use the bootstrap rake task to do that (be sure to read it first to see what it does):

rake bootstrap

You need to set the following enviroment variables:

LILA_SHELL_DATABASE_URL :: PostgreSQL database connection URL LILA_SHELL_SESSION_ECRET :: session secret, >=64 bytes

One way to set this is to create a .env.rb file in the root of the repository containing:

ENV['LILA_SHELL_DATABASE_URL'] ||= 'postgres:///?user=lila_shell&password=...'
ENV['LILA_SHELL_SESSION_SECRET'] ||= '...'

You can then run the server (via unicorn or another rack-compatible webserver):

unicorn

Tests

You can run all test suites using the default rake task:

rake

For the web tests, you need to setup a test database, but the bootstrap task described in the Setup section takes care of that.

Source

The most current source code can be accessed via github (http://github.com/jeremyevans/lila_shell).

Author

Jeremy Evans ([email protected])

lila_shell's People

Contributors

jeremyevans 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.