Code Monkey home page Code Monkey logo

cloud-sample-node-chat's Introduction

NodeJS Chat Application

Description:

This is a simple chat application that is built on NodeJS. It uses socket.io library which enables real-time, event-based communication. It shows how socket.io rooms can be used to create different chat rooms. This application can be run locally as well as on Cloud Foundry landscape.

Features:

  • Login with name, email id.
  • Chat with a user who has logged into the same chat room.
  • Only 2 people are allowed per room. If more people enter, they will be directed to a different room.

Requirements

Download and Installation

Running the application

  1. Clone this repository

  2. Login to Cloud Foundry by typing the below commands on command prompt

    cf api <api>
    cf login -u <username> -p <password> 
    

    api - URL of the Cloud Foundry landscape that you are trying to connect to.

    username - Email address of your sap.com account. password - Your sap.com password

    Select the org and space when prompted to. For more information on the same refer link.

  3. Edit Manifest

    Open the manifest.yml file and replace <I/D/C numbers> placeholder with your SAP User ID so that the host name is unique in the CF landscape. You can find your SAP User ID in your sap.com profile.

  4. Push the application

    cf push

  5. Once the application has been pushed successfully, open the URl in a web browser. You can test by opening the same chat room in different browser tabs.

Known Issues

No known issues.

How to Obtain Support

In case you find a bug, or you need additional support, please open an issue here in GitHub.

License

Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under SAP Sample Code License Agreement, except as noted otherwise in the LICENSE file.

cloud-sample-node-chat's People

Contributors

jonathanbaker7 avatar navinkrishnan avatar

Watchers

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