GithubHelp home page GithubHelp logo

altp-server's Introduction

Socket.IO Chat

A simple chat demo for socket.io

How to use

$ cd socket.io
$ npm install
$ cd examples/chat
$ npm install
$ node .

And point your browser to http://localhost:3000. Optionally, specify a port by supplying the PORT env variable.

Features

  • Multiple users can join a chat room by each entering a unique username on website load.
  • Users can type chat messages to the chat room.
  • A notification is sent to all users when a user joins or leaves the chatroom.

Openshift

$git remote add openshift ssh://[email protected]/~/git/altp.git/

if have any error, try to log:

$rhc ssh -a image $tail app-root/logs/nodejs.log

MongoDb configuration

 MongoDB 2.4 database added.  Please make note of these credentials:

   Root User:     admin
   Root Password: ********
   Database Name: image

 Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/

remote git:

ssh://[email protected]/~/git/image.git/

watch using space memory

$rhc show-app altp --gears quota $rhc app-tidy

port forwarding (use remote database on local computer)

$rhc port-forward altp

root directory

/var/lib/openshift/5766b0f50c1e6601a800014e

set DEV/PROD mode

export NODE_ENV=production (or development)

see console.log

$rhc tail -a altp ssh -t [email protected] 'tail /log/*'

restart application

$rhc restart-app -a altp

stop application

$rhc app-stop -a altp

start application

$rhc app-start -a altp

altp-server's People

Contributors

khacpv avatar

Watchers

 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.