SAP-samples / cloud-sample-node-chat

A simple chat application that is built on Node.js.
Apache License 2.0
39 stars 53 forks source link
node-js sample-code sap-cloud-platform

NodeJS Chat Application

REUSE status

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:

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. Push the application

    cf push --random-route

  4. 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) 2020 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSEfile.