Skip to content
Browse files

Merge pull request #18 from fogus/chat-fixes

Helloworld / Chat sample fixes
  • Loading branch information...
2 parents 9316082 + 2778302 commit 08df7ba6372b50dbc5098aa4ccaf10fd89ceb66d @rkneufeld rkneufeld committed Apr 3, 2013
Showing with 12 additions and 9 deletions.
  1. +6 −3 chat/README.md
  2. +2 −2 chat/chat-client/project.clj
  3. +2 −2 chat/chat-server/project.clj
  4. +2 −2 helloworld-app/project.clj
View
9 chat/README.md
@@ -11,29 +11,32 @@ Prerequisite: all Pedestal libraries, both server and client, must be installed.
To run from the `chat` directory...
-```
+```sh
cd chat-client
lein repl
(dev)
(watch :development)
```
Open another terminal, then:
-```
+```sh
cd chat-server
mkdir resources
cd resources
ln -s ../../chat-client/out/public
+
+# on windows: xcopy /e ..\chat-client\out\public .\resources\public
+
cd ..
lein repl
(require 'dev)
(dev/start) # Launch webserver on port 8080.
```
-In a browser, navigate to http://localhost:8080/chat-client-dev.html where you will see the chat client interface.
+In a browser, navigate to <http://localhost:8080/chat-client-dev.html> where you will see the chat client interface.
Use the interface to send a chat message, which you will see echoed to your local screen.
View
4 chat/chat-client/project.clj
@@ -16,8 +16,8 @@
[domina "1.0.1"]
[ch.qos.logback/logback-classic "1.0.6"]
[org.clojure/clojurescript "0.0-1450"]
- [io.pedestal/pedestal.app "0.1.0"]
- [io.pedestal/pedestal.app-tools "0.1.0"]]
+ [io.pedestal/pedestal.app "0.1.2"]
+ [io.pedestal/pedestal.app-tools "0.1.2"]]
:profiles {:dev {:source-paths ["dev"]}}
:source-paths ["app/src" "app/templates"]
:resource-paths ["config"]
View
4 chat/chat-server/project.clj
@@ -15,8 +15,8 @@
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.0"]
- [io.pedestal/pedestal.service "0.1.0"]
- [io.pedestal/pedestal.jetty "0.1.0"]
+ [io.pedestal/pedestal.service "0.1.2"]
+ [io.pedestal/pedestal.jetty "0.1.2"]
[ch.qos.logback/logback-classic "1.0.7"]
[org.slf4j/jul-to-slf4j "1.7.2"]
[org.slf4j/jcl-over-slf4j "1.7.2"]
View
4 helloworld-app/project.clj
@@ -16,8 +16,8 @@
[domina "1.0.1"]
[ch.qos.logback/logback-classic "1.0.6"]
[org.clojure/clojurescript "0.0-1450"]
- [io.pedestal/pedestal.app "0.1.0"]
- [io.pedestal/pedestal.app-tools "0.1.0"]]
+ [io.pedestal/pedestal.app "0.1.2"]
+ [io.pedestal/pedestal.app-tools "0.1.2"]]
:profiles {:dev {:source-paths ["dev"]}}
:source-paths ["app/src" "app/templates"]
:resource-paths ["config"]

0 comments on commit 08df7ba

Please sign in to comment.
Something went wrong with that request. Please try again.