alexandreroman / chatfoundry

A chatroom implementation using Kotlin/Redis, deployed to Cloud Foundry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to Chatfoundry!

Chatfoundry is a chatroom implementation using Kotlin/Redis, deployed to Cloud Foundry. The purpose of this app is to play with Cloud Foundry, and learn how to use it.

Prerequisites

Tests are made using Pivotal Web Services (PWS), but you can also deploy this web on your own instance. You may use PCF Dev to deploy this app on your workstation.

You need a Java 8 SDK to build this app.

Build instructions

This project is using Maven 3.5+:

$ ./mvnw clean package

How to run this app

To deploy this app to PWS, use these commands:

$ cf login -a http://api.run.pivotal.io
$ cf create-service redis 30mb rediscloud
$ cf push
$ cf bind-service chatfoundry redis

If you are using a Cloud Foundry instance other than PWS, make sure you bind a Redis service to this app.

If you're running this app locally, you need a running Redis instance. You can use the official Redis Docker image:

$ docker run --name redis --rm -p "6379:6379/tcp" redis:5

Enjoy!

The app should be available at https://chatfoundry-RANDOM.cfapps.io. Check command output or Apps Manager to get the real endpoint.

About

A chatroom implementation using Kotlin/Redis, deployed to Cloud Foundry

License:GNU General Public License v3.0


Languages

Language:Kotlin 75.2%Language:JavaScript 13.3%Language:HTML 7.9%Language:CSS 3.7%