Skip to content

Commit 2c33bf5

Browse files
DarMontouDarMontou
DarMontou
authored and
DarMontou
committed
initial commit
1 parent a7ff815 commit 2c33bf5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8562
-0
lines changed

Procfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
web: java -cp target/chatb0x.jar clojure.main -m chatb0x.core
2+

README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Chatb0x [![Build Status](https://semaphoreapp.com/api/v1/projects/5a7b5072-d324-46d3-9994-0b265cbdf054/251633/badge.png)](https://semaphoreapp.com/clojurecup2014/chatb0x)<a href="https://floobits.com/FIXME/chatb0x/redirect"> <img alt="Floobits status" width="100" height="40" src="https://floobits.com/FIXME/chatb0x.png" /> </a>
2+
3+
A chat plugin for websites. The following technologies will be leveraged for this project.
4+
5+
* [Clojure](http://clojure.org/)
6+
* [Ring](https://github.com/ring-clojure/ring/wiki)
7+
* [Friend](https://github.com/cemerick/friend)
8+
* [Compojure](https://github.com/weavejester/compojure/wiki)
9+
* [Bootstrap](http://getbootstrap.com/getting-started/ )
10+
* [Enlive](https://github.com/cgrand/enlive/wiki/_pages)
11+
* [FigWheel](https://github.com/bhauman/lein-figwheel)
12+
* [Core.Async](https://github.com/clojure/core.async)
13+
* [Om](https://github.com/swannodette/om)
14+
* [Kioo](https://github.com/ckirkendall/kioo)
15+
* [http-kit](http://http-kit.org/)
16+
17+
## Links
18+
19+
Cup: [chatb0x.clojurecup.com](http://chatb0x.clojurecup.com)
20+
21+
## Installation
22+
23+
Clone the repo using the URL in the side bar.
24+
```
25+
~/workspace $ git clone https://github.com/clojurecup2014/chatb0x.git
26+
```
27+
28+
## Usage
29+
30+
```
31+
$ cd chatb0x
32+
33+
chatb0x$ lein server
34+
35+
```
36+
37+
If you would also like to have interactive web development via FigWheel then you might open another terminal and run...
38+
39+
```
40+
$ cd chatb0x
41+
42+
chatb0x$ lein figwheel
43+
```
44+
45+
After running the steps above you should be serving the project at [http://localhost:8080/](http:localhost:8080/)
46+
47+
## License
48+
49+
Copyright © 2014
50+
51+
Distributed under the Eclipse Public License, the same as Clojure.

project.clj

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
(defproject chatb0x "0.0.1-SNAPSHOT"
2+
:description "Chat Plugin for Websites"
3+
:min-lein-version "2.0.0"
4+
:url "http://31.171.247.217"
5+
:license {:name "Eclipse Public License"
6+
:url "http://www.eclipse.org/legal/epl-v10.html"}
7+
:dependencies [[org.clojure/clojure "1.6.0"]
8+
9+
;; server
10+
[cheshire "5.3.1"]
11+
[compojure "1.1.8"]
12+
[http-kit "2.1.16"]
13+
[ring "1.3.1"]
14+
[enlive "1.1.5"]
15+
[com.cemerick/friend "0.2.0"]
16+
17+
;; clojurescript
18+
[org.clojure/clojurescript "0.0-2280"]
19+
[om "0.7.1"]
20+
[kioo "0.4.1-SNAPSHOT"]
21+
[com.facebook/react "0.11.1"]
22+
[cljs-hash "0.0.2"]
23+
24+
;; dev
25+
[org.clojure/tools.nrepl "0.2.3"]
26+
[cider/cider-nrepl "0.7.0"]
27+
[figwheel "0.1.4-SNAPSHOT"]]
28+
29+
:plugins [[com.cemerick/austin "0.1.5"]
30+
[lein-cljsbuild "1.0.3"]
31+
[lein-ring "0.8.8"]
32+
[lein-figwheel "0.1.4-SNAPSHOT"]]
33+
34+
:resource-paths ["resources"]
35+
36+
:cljsbuild {:builds
37+
[{:source-paths ["src-cljs"]
38+
:compiler {:output-to "resources/public/scripts/compiled/app.js"
39+
:output-dir "resources/public/scripts/compiled"
40+
:optimizations :none
41+
:pretty-print true
42+
:source-map true}}]}
43+
44+
:profiles {:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
45+
[ring-mock "0.1.5"]]
46+
:repl-options {:init-ns chatb0x.core}}}
47+
48+
:aliases {"server" ["trampoline" "run" "-m" "chatb0x.server"]}
49+
50+
:figwheel {:http-server-root "public"
51+
:server-port 3449}
52+
:uberjar-name "comments.jar")

resources/public/chatb0x-box.html

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<html>
2+
<body>
3+
<div class="detailBox">
4+
<div class="titleBox">
5+
<label>Some Title</label>
6+
<button type="button" class="close" aria-hidden="true">&times;</button>
7+
</div>
8+
<div class="commentBox">
9+
<p class="taskDescription">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
10+
</div>
11+
<div class="actionBox">
12+
<ul class="commentList">
13+
<li>
14+
<div class="commenterImage">
15+
<img src="http://lorempixel.com/50/50/people/6" />
16+
</div>
17+
<div class="commentText">
18+
<p class="">Hello this is a test comment.</p> <span class="date sub-text">on March 5th, 2014</span>
19+
20+
</div>
21+
</li>
22+
<li>
23+
<div class="commenterImage">
24+
<img src="http://lorempixel.com/50/50/people/7" />
25+
</div>
26+
<div class="commentText">
27+
<p class="">Hello this is a test comment and this comment is particularly very long and it goes on and on and on.</p> <span class="date sub-text">on March 5th, 2014</span>
28+
29+
</div>
30+
</li>
31+
<li>
32+
<div class="commenterImage">
33+
<img src="http://lorempixel.com/50/50/people/9" />
34+
</div>
35+
<div class="commentText">
36+
<p class="">Hello this is a test comment.</p> <span class="date sub-text">on March 5th, 2014</span>
37+
38+
</div>
39+
</li>
40+
</ul>
41+
<form class="form-inline" role="form">
42+
<div class="form-group">
43+
<input id="comment" class="form-control" type="text" placeholder="Your comments" />
44+
</div>
45+
<div class="form-group">
46+
<button id="send" class="btn btn-default">Send</button>
47+
</div>
48+
</form>
49+
</div>
50+
</div>
51+
</body>
52+
</html>

resources/public/chatb0x.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html id="THE_HTML">
3+
<head>
4+
<title>c&#216;mment</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<!--<link href="css/style.css" rel="stylesheet" media="screen"> -->
7+
<style>
8+
@import url("css/bootstrap.min.css");
9+
@import url("css/bootstrap-theme.min.css");
10+
@import url("css/layout.css");
11+
@import url("css/style.css");
12+
@import url("css/comment-box.css")
13+
</style>
14+
</head>
15+
<body>
16+
<!-- NAVBAR ============================================================================================ -->
17+
<div class="navbar navbar-default navbar-fixed-top">
18+
<div class="container">
19+
<div class="navbar-header">
20+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
21+
<span class="icon-bar"></span>
22+
<span class="icon-bar"></span>
23+
<span class="icon-bar"></span>
24+
</button>
25+
<a class="navbar-brand logo" href="#"> <span class="brand">c&#216;mment</a>
26+
</div>
27+
<div class="navbar-collapse collapse">
28+
<ul class="nav navbar-nav">
29+
<li class=""><a href="/">Home</a></li>
30+
<li class="hidden-sm"><a href="/about">About</a></li>
31+
<li class="hidden-sm"><a href="/contact">Contact</a></li>
32+
</ul>
33+
<!-- User -->
34+
<div class="user pull-right">
35+
<a href="logout" class="user btn-lg"><span class="user">&#60;user&#62;</span> <span class="glyphicon glyphicon-user"></span> <span class="glyphicon glyphicon-cog"></span> <span class="glyphicon glyphicon-log-out"></span></a>
36+
</div><!--/.user pull-right-->
37+
</div><!--/.nav-collapse -->
38+
</div><!--/.countainer -->
39+
</div><!--/.navbar navbar-default navbar-fixed-top -->
40+
41+
<!-- Welcome Message ================================================================================ -->
42+
<script src="http://code.jquery.com/jquery.js"></script>
43+
<script src="scripts/bootstrap.min.js"></script>
44+
<script src="scripts/compiled/goog/base.js"></script>
45+
<script src="scripts/compiled/app.js"></script>
46+
<script type="text/javascript">goog.require("comments.core");</script>
47+
48+
</body>
49+
</html>

resources/public/css/all-min.css

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)