Coder Social home page Coder Social logo

knockoff's Introduction

2009-08-10

thanks to pg and rtm for arc and rhickey and all the #clojure people for clojure.

the initial goal was to get the arc challenge running.  i ended up doing a bit 
more, but this is still just a clone of (most of) srv.arc, it doesn't have a lot of 
arc's html stuff yet. but it probably will soon.

also let me know if there's anything wrong with the license or copyright or whatever, 
i never thought about that stuff until this morning.

also github made me pick a name, so i went with "knockoff", but call it whatever you want.
besides it should be j-encoded like a real clojure software project: "kjnocjkofjf"

to run it:

First open up srv.clj and change parent* to the checkout directory.

Also get clojure (from github, perhaps)
and get clojure-contrib (also on github)

put those things and this directory on your classpath; maybe by firing up java like:

java -cp "/path/to/clojure.jar:/path/to/clojure-contrib.jar:/path/to/this/directory" clojure.main

then at the repl:
(load "srv")
(def srv* (thread (serve)))

serve takes an optional port number.

To see it working, point your browser to localhost:8080 or localhost:8080/said

also there's arc examples out there you can copy.

to quit without killing the repl:
(reset! quitsrv* true)

after a couple more requests the thread will die.

knockoff's People

Stargazers

 avatar Angus H. avatar Tom Crayford avatar Liron Greenstein avatar Sergey Pariev avatar  avatar

Watchers

Liron Greenstein avatar James Cloos avatar  avatar

Forkers

tcrayford

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.