Giter Club home page Giter Club logo

basilisk.node's Introduction

Basilisk

Basilisk is a chat application. A NodeJS server is provided, along with a client (HTML, CSS, JavaScript + AngularJS). A PHP server is also included, which can replace the NodeJS one.

Usage

To run the NodeJS server, NodeJS is needed. First install the dependencies using npm (it is usually installed with NodeJS), by running this command in the "server-node" directory:

npm install

Then run this command in the same directory to start the server:

node bin/basilisk.js

To run the PHP server, PHP is required. First install the dependencies using composer (see https://getcomposer.org/) by running this command in the "server-php" directory:

php composer.phar install

Or, if you have composer installed globally:

composer install

Then run this command in the same directory to start the server:

php bin/basilisk.php

The client does not have any dependencies, except for some JavaScript libraries which are already included. To work properly, the client can't be run by just double clicking in the main file (index.html). It needs an HTTP server. If you have Python available, a very simple way to get an HTTP server up in seconds is to run this command in the "client" directory:

python -m SimpleHTTPServer

After that, open http://localhost:8000 in your browser.

Now you can choose a username and login to the chat. To test the offline capabilities in a local machine, you can trigger a disconnection of the client manually by sending the command "!leave". At this point you can write some offline messages, and then connect again using the "Connect" link.

basilisk.node's People

Watchers

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