Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sap-samples/cloud-sample-node-chat

A simple chat application that is built on Node.js.
https://github.com/sap-samples/cloud-sample-node-chat

node-js sample-code sap-cloud-platform

Last synced: 5 days ago
JSON representation

A simple chat application that is built on Node.js.

Awesome Lists containing this project

README

        

# NodeJS Chat Application
[![REUSE status](https://api.reuse.software/badge/github.com/SAP-samples/cloud-sample-node-chat)](https://api.reuse.software/info/github.com/SAP-samples/cloud-sample-node-chat)

## 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
- [Node js](https://nodejs.org/en/download/)
- [Cloud Foundry Command Line Interface (CLI)](https://github.com/cloudfoundry/cli#downloads)
- Cloud Foundry trial or enterprise account, [sign up for a Cloud Foundry environment trial account on SAP Business technology Platform(https://developers.sap.com/tutorials/hcp-create-trial-account.html)

## Download and Installation
Running the application

1. [Clone](https://help.github.com/articles/cloning-a-repository/) this repository
2. Login to Cloud Foundry by typing the below commands on command prompt
```
cf api
cf login -u -p
```
`api` - [URL of the Cloud Foundry landscape](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/350356d1dc314d3199dca15bd2ab9b0e.html) 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](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/75125ef1e60e490e91eb58fe48c0f9e7.html#loio4ef907afb1254e8286882a2bdef0edf4).

3. Push the application

```cf push --random-route```
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) 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 [LICENSE](LICENSES/Apache-2.0.txt)file.