Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cgmartin/clj-wamp-template
Leiningen template for a minimal WAMP WebSocket server with HTTP Kit and clj-wamp
https://github.com/cgmartin/clj-wamp-template
Last synced: 13 days ago
JSON representation
Leiningen template for a minimal WAMP WebSocket server with HTTP Kit and clj-wamp
- Host: GitHub
- URL: https://github.com/cgmartin/clj-wamp-template
- Owner: cgmartin
- License: epl-1.0
- Created: 2013-06-23T02:56:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-10T15:40:21.000Z (over 11 years ago)
- Last Synced: 2024-12-18T00:26:31.488Z (about 2 months ago)
- Language: Clojure
- Size: 180 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clj-wamp
A Leiningen template for a minimal WAMP WebSocket server with
[HTTP Kit](https://github.com/http-kit/http-kit)
and [clj-wamp](https://github.com/cgmartin/clj-wamp).## Usage
Create a new clj-wamp project with leiningen:
```bash
% lein new clj-wamp my-project-name
% cd my-project-name
% lein run
```
...and open browser to [localhost:8080](http://localhost:8080)## Project Structure
```
wamptutorial
├── README.md
├── project.clj
├── resources
│ └── public
│ └── index.html
├── resources-dev
│ ├── config.clj
│ └── log4j.properties
└── src
└── wamptutorial
├── config.clj
├── main.clj
├── routes.clj
└── websocket.clj
```## Development
One-time setup:
1. Clone this repo
2. Add the following to your `~/.lein/profiles.clj` user plugins: `[clj-wamp/lein-template "0.1.0-SNAPSHOT"]`Test/Dev cycle:
1. Run `lein install`
2. In a temp directory, run `lein new clj-wamp testcljwamp`
3. Try running the new project: `lein run`## Thanks
Template code is based off of [HTTP Kit's lein template](https://github.com/http-kit/lein-template).
## License
Copyright © 2013 Christopher Martin
Distributed under the Eclipse Public License, the same as Clojure.