Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull #20

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open

pull #20

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
9b97afb
Update README.md
Superfresh Sep 28, 2016
e0d6eb9
Create screenshots
Superfresh Sep 28, 2016
efea35e
Delete screenshots
Superfresh Sep 28, 2016
955dea1
Create ch
Superfresh Sep 28, 2016
f257551
Add files via upload
Superfresh Sep 28, 2016
f099dd8
Add files via upload
Superfresh Sep 29, 2016
f35d90e
Update README.md
Superfresh Sep 29, 2016
6cee947
Update README.md
Superfresh Sep 29, 2016
fc827ec
Add files via upload
Superfresh Sep 29, 2016
d419abf
Update README.md
Superfresh Sep 29, 2016
20dc7b6
Update README.md
Superfresh Sep 29, 2016
85d7cb5
Update README.md
Superfresh Sep 29, 2016
6b62155
Add files via upload
Superfresh Sep 29, 2016
c8b2bf5
Update login.html
Superfresh Feb 17, 2017
1d6fefd
Update login.html
Superfresh Feb 17, 2017
1c532e3
Update login.html
Superfresh Mar 1, 2017
43429af
Update config.js
Superfresh Mar 9, 2017
84da069
Update README.md
Superfresh Mar 29, 2017
e6e4adf
Update README.md
Superfresh Mar 29, 2017
232feed
Update README.md
Superfresh Mar 29, 2017
881f71e
Update README.md
Superfresh Mar 29, 2017
7698cff
Update README.md
Superfresh Mar 29, 2017
c10f006
Update README.md
Superfresh Mar 29, 2017
dd97946
Update README.md
Superfresh Mar 29, 2017
b2d298f
Update README.md
Superfresh Mar 29, 2017
a367ca4
Update README.md
Superfresh Mar 29, 2017
1c193f2
Update README.md
Superfresh Mar 29, 2017
6a65a1a
Update README.md
Superfresh Mar 29, 2017
9787c32
Update README.md
Superfresh Mar 29, 2017
dcac82a
Update README.md
Superfresh Mar 29, 2017
1c80887
Update README.md
Superfresh Mar 29, 2017
ea2d053
Update README.md
Superfresh Mar 30, 2017
adc2699
Update README.md
Superfresh Mar 30, 2017
c11778a
Update README.md
Superfresh Mar 30, 2017
b70e5c2
Update README.md
Superfresh Mar 30, 2017
9bfcaa6
Update README.md
Superfresh Mar 30, 2017
1d70ebb
Update README.md
Superfresh Mar 30, 2017
71e089e
Update README.md
Superfresh Mar 30, 2017
50d03f9
Update README.md
Superfresh Mar 30, 2017
fdb728c
Update README.md
Superfresh Mar 31, 2017
3445140
Update README.md
Superfresh Mar 31, 2017
8814146
Update README.md
Superfresh Mar 31, 2017
e2f5230
Update README.md
Superfresh Mar 31, 2017
afb752f
Update README.md
Superfresh Mar 31, 2017
3ab13ee
Update README.md
Superfresh Mar 31, 2017
fd784c8
Update docker-compose.yml
Superfresh Apr 3, 2017
164cf62
Create docker_compose.yml
Superfresh Apr 3, 2017
24cc3de
Rename docker_compose.yml to docker-compose.yml
Superfresh Apr 3, 2017
4a6aba1
Update README.md
Superfresh Apr 3, 2017
b331021
Update README.md
Superfresh Apr 3, 2017
d1d7bde
Update README.md
Superfresh Apr 3, 2017
467af3d
Update README.md
Superfresh Apr 3, 2017
e428433
Update README.md
Superfresh Apr 3, 2017
e9fb8f6
Update README.md
Superfresh Apr 3, 2017
637932f
Update README.md
Superfresh Apr 3, 2017
efc041b
Update docker-compose.yml
Superfresh Apr 4, 2017
311d78c
Update README.md
Superfresh Apr 4, 2017
d635f95
Update README.md
Superfresh Apr 4, 2017
0a4402b
Update README.md
Superfresh Apr 4, 2017
7855789
Update docker-compose.yml
Superfresh Apr 4, 2017
9ab8db6
Update README.md
Superfresh Apr 4, 2017
2c93c1a
Update README.md
Superfresh Apr 4, 2017
6818e53
Update README.md
Superfresh Apr 4, 2017
4392ac1
Update README.md
Superfresh Apr 4, 2017
99bbfbe
Update docker-compose.yml
Superfresh Apr 4, 2017
3b2d3d5
Midnight commit
Superfresh Oct 12, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 117 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,141 @@
![Let's Chat Greylock](http://i.imgur.com/0a3l5VF.png)
#test1
#test2
![Screenshot](http://i.imgur.com/C4uMD67.png)
Test Test
A self-hosted chat app for small teams or big Gal by [Security Compass][seccom].
![Let's Chat Greylock](https://codefresh.io/wp-content/uploads/2017/03/lets-chat.png)

[![Build Status](https://travis-ci.org/sdelements/lets-chat.svg?branch=master)](https://travis-ci.org/sdelements/lets-chat)
[![Dependency Status](https://david-dm.org/sdelements/lets-chat.svg)](https://david-dm.org/sdelements/lets-chat)
[![devDependency Status](https://david-dm.org/sdelements/lets-chat/dev-status.svg)](https://david-dm.org/sdelements/lets-chat#info=devDependencies)

## Features and Stuff
Use this tutorial to familiarize yourself with codefresh.yml file and Codefresh functionality.

* BYOS (bring your own server)
* Persistent messages
* Multiple rooms
* Private and password-protected rooms
* New message alerts / notifications
* Mentions (hey @you/@all)
* Image embeds / Giphy search
* Code pasting
* File uploads (Local / [Amazon S3][s3] / [Azure][azure])
* Transcripts / Chat History (with search)
* XMPP Multi-user chat (MUC)
* 1-to-1 chat between XMPP users
* Local / [Kerberos][kerberos] / [LDAP][ldap] authentication
* [Hubot Adapter][hubot]
* REST-like API
* Basic i18n support
* MIT Licensed
![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/11.png)


## Deployment
This tutorial is based on Let’s Chat [app].

For installation instructions, please use the following links:
https://github.com/containers101/demochat

* [Local installation][install-local]
* [Docker][install-docker]
* [Heroku][install-heroku]
* [Vagrant][install-vagrant]
### Let’s Chat is self-hosted chat app for small teams or big

## Support & Problems
This tutorial will walk you through the process of adding the following :

We have a [troubleshooting document][troubleshooting], otherwise please use our
[mailing list][mailing-list] for support issues and questions.

* Build step - that will build Docker image for your Let’s Chat app

## Bugs and feature requests
* Push to registry step - that will push your image to Docker Hub

Have a bug or a feature request? Please first read the [issue
guidelines][contributing] and search for existing and closed issues. If your
problem or idea is not addressed yet, [please open a new issue][new-issue].
* Unit Test step - A freestyle step that runs the unit test of the demo chat after the build

* Composition step - This step will create and launch a composition.

## Documentation
So, the first thing you need to do is :

Let's Chat documentation is hosted in the [wiki]. If there is an inaccuracy in
the documentation, [please open a new issue][new-issue].
## Fork our repo

Enter the following link and fork Let’s Chat app!: ```https://github.com/containers101/demochat```

## Contributing

Please read through our [contributing guidelines][contributing]. Included are
directions for opening issues, coding standards, and notes on development.
## Add a service
Now enter Codefresh and add your Let’s Chat app as a Codefresh service.

Editor preferences are available in the [editor config][editorconfig] for easy
use in common text editors. Read more and download plugins at
<http://editorconfig.org>.
Click on ___Add Repository___

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/add-repo.png)

## License

Released under [the MIT license][license].
Now add your forked demochat repo. You can search for it by typing "demochat" to search. You can also Add by URL here.

Also, choose the branch for your first build (in this case ```master```)

When you finish press ___Next___.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/select-repo2.png)


Select how you would like to setup your repository. In this case, our repo has a ___Dockerfile___, so we'll select the middle option.


![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/15.png)

By default, Codefresh searches for your Dockerfile at the root level of your repository, by the name "Dockerfile". The demo-chat example includes a Dockerfile in the root level.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/16.png)


Review your Dockerfile, and click ___Create___ to add your repository.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/17.png)

Clicking on ___Build___ button will trigger a regular build.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/18.png)

Great, you are running your build for the first time!

## Push your image to Docker registry
Click on ___Repositories___, and then click on the ___Pipelines___ gear.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/19.png)

Scroll down to ___Workflow___, and you will see a ___Push to Docker___ button. If you have set up your credentials, click ___Save___ at the bottom of the screen. Otherwise- click on the ___integration page___ link.

Write your User/Password info, and click ___Save___ to connect.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/20.png)


## Unit test your image
Let's head over to ___Piplines___ again.
![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/19.png)

Scroll down to Workflow under ___Build and Unit Test___

We'll type in ```echo $(date)``` in the Unit Test Script area. This will print the date, and we'll be able to see our test in action.

Let's click ___Save___, and ___Build___ to see it in action.

Great- the date has been printed!

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/22.png)


Now let's add a full composition that also contains mongo db.


## Add composition

Our Let's Chat app needs mongo in order to work, so let's add it!

You can read more about compositions in our docs, but we will also walk through the process here :
https://docs.codefresh.io/docs/create-composition


Click the ___Composition___ view icon in the left pane, and click the ___Add Composition___.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/1.png)

Choose a name for your composition

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/2.png)

We are going to build our comp from scrath, so click ___Empty Composition___

![Screenshot](https://codefresh.io/wp-content/uploads/2017/04/empty_comp.png)

Now we will click ___Add Service___ and add demochat, the port (50000), and mongo.
Everything looks good here- so let's go ahead and launch by clicking the rocket ship...

![Screenshot](https://codefresh.io/wp-content/uploads/2017/04/savelaunch_final.png)


Once it has completed, a link to our app will be displayed. Let's click it to see if it worked.


![Screenshot](https://codefresh.io/wp-content/uploads/2017/04/completed_in.png)

Success! We have successfully launched a composition.

![Screenshot](https://codefresh.io/wp-content/uploads/2017/03/10.png)






[app]: https://github.com/containers101/demochat

[wiki]: https://github.com/sdelements/lets-chat/wiki
[troubleshooting]: https://github.com/sdelements/lets-chat/blob/master/TROUBLESHOOTING.md
[mailing-list]: https://groups.google.com/forum/#!forum/lets-chat-app
[tracker]: https://github.com/sdelements/lets-chat/issues
[contributing]: https://github.com/sdelements/lets-chat/blob/master/CONTRIBUTING.md
[new-issue]: https://github.com/sdelements/lets-chat/issues/new
[editorconfig]: https://github.com/sdelements/lets-chat/blob/master/.editorconfig
[license]: https://github.com/sdelements/lets-chat/blob/master/LICENSE
[ldap]: https://github.com/sdelements/lets-chat-ldap
[kerberos]: https://github.com/sdelements/lets-chat-kerberos
[s3]: https://github.com/sdelements/lets-chat-s3
[seccom]: http://securitycompass.com/
[hubot]: https://github.com/sdelements/hubot-lets-chat
[azure]: https://github.com/maximilian-krauss/lets-chat-azure
[install-local]: https://github.com/sdelements/lets-chat/wiki/Installation
[install-docker]: https://registry.hub.docker.com/u/sdelements/lets-chat/
[install-heroku]: https://github.com/sdelements/lets-chat/wiki/Heroku
[install-vagrant]: https://github.com/sdelements/lets-chat/wiki/Vagrant
1 change: 1 addition & 0 deletions app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var path = require('path');
var debug = require('debug')('config readers');

function parseEnvValue(value, isArray) {
value = value;
value = value.trim();
if (isArray) {s
return _.map(value.split(','), function(value) {
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

#this is an example of a self-hosted chat app.
#the composition uses just mongo as a database and an image that was built from a demo application https://github.com/containers101/demochat

version: '2'
services:
demochat:
build: .
ports:
- 5000
mongo:
image: mongo
31 changes: 13 additions & 18 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# Let's Chat: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: docker-compose up
#this is an example of a self-hosted chat app.
#the composition uses just mongo as a database and an image that was built from a demo application https://github.com/containers101/demochat

app:
image: sdelements/lets-chat:latest
links:
- mongo
ports:
- 80:8080
- 5222:5222
command: ls .


mongo:
image: mongo:latest
ports :
- 27017:27017
version: '2'
services:
app:
image: 'containers101/demochat:master'
links:
- mongo
ports:
- 5000
mongo:
image: 'mongo:latest'
command: mongod --smallfiles
Binary file added screenshots/2016-09-28_1522.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1536.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1639.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1641.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1645.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1852.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1915.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1918.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-28_1921.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_15-27-53.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_1539.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_1549.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_1550.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_1552.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_1728.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2016-09-29_1729.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions screenshots/ch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fad
Binary file added screenshots/services.png
2 changes: 1 addition & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<% block body %>
<section class="lcb-login-main">
<h1 class="lcb-login-logo">Let<span class="flavour">'</span>s Chat</h1>
<h1 class="lcb-login-logo">Let<span class="flavour">'</span>s Chat at Midnight!</h1>
<div class="lcb-login-boxes">
<form class="lcb-login-box lcb-login-box-login validate" action="./account/login" method="post" data-refresh="true">
<h2 class="lcb-login-box-heading"><$ __('Sign in') $></h2>
Expand Down