git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
;; Copyright (c) James Reeves. All rights reserved. | |
;; The use and distribution terms for this software are covered by the Eclipse | |
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which | |
;; can be found in the file epl-v10.html at the root of this distribution. By | |
;; using this software in any fashion, you are agreeing to be bound by the | |
;; terms of this license. You must not remove this notice, or any other, from | |
;; this software. | |
(ns compojure.server.jetty | |
"Clojure interface to start an embedded Jetty server." |
(ns clj-play.aleph | |
(:use aleph)) | |
(defn hello-world [request] | |
(respond! request | |
{:status 200 | |
:headers {"Content-Type" "text/html"} | |
:body "Hello Clojure!"})) | |
(run-aleph hello-world {:port 8080}) |
// gradle-build that uses meikel brandmeyers clojure-plugin for gradle (clojuresque) | |
// see http://bitbucket.org/kotarak/clojuresque | |
// use a standard maven directory-layout -> /src/main/clojure, /src/main/webapp | |
apply plugin: 'clojure' | |
apply plugin: 'war' | |
apply plugin: 'project-report' | |
warnOnReflection = false | |
aotCompile = true // needed for gen-class in servlet.clj |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
apply plugin:'groovy' | |
apply plugin:'idea' | |
repositories { mavenCentral() } | |
dependencies { | |
groovy 'org.codehaus.groovy:groovy-all:1.8.4' | |
} | |
task makeDirs(description:'make all dirs for project setup') << { |
#!/bin/bash | |
# which programs do you want to install into your path? | |
programs=( groovy grails gradle scala ) | |
# relies on the conventions: | |
# 1. all tools go into ~/tools | |
# 2. all tools are configured with a 'current' symlink for | |
# the currently in-use version | |
# 3. all tools have a 'bin' directory |
(defmacro deftestpackage (package-name for-package &optional (test-library-package-name :unit-test)) | |
"Define a new package PACKAGE-NAME used to test the package | |
designated by FOR-PACKAGE. The new package will import all symbols | |
from FOR-PACKAGE and :USE the package designated by | |
TEST-LIBRARY-PACKAGE-NAME which supposedly contains unit testing | |
functions and macros." | |
`(defpackage ,package-name | |
(:use ,test-library-package-name ,@(mapcar #'package-name (package-use-list for-package))) | |
(:import-from ,for-package | |
,@(let (symbols) |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
// Run Jetty on dependency resolved war file | |
// | |
// you can run multiple wars with different configuration by | |
// adding more task definitions. | |
// | |
import org.gradle.api.plugins.jetty.JettyRunWar | |
apply plugin: 'java' | |
apply plugin: 'jetty' |
eventsource | |
go-eventsource | |
client/client |