Code Monkey home page Code Monkey logo

a2-clojure-todo-app's Introduction

a2-clojure-todo-app

This is a simple to-do list to demonstrate web development concepts for a A2 Clojure meetup. Check out the commit history for a blow-by-blow explanation, and see here for the slides.

Usage

The master branch is the finished sample; checkout the start-here branch if you'd like to code this yourself.

Open a REPL and run the following to start the app:

(require '[a2-clojure-todo-app.core :refer [start-app!]])
(require '[a2-clojure-todo-app.state :refer [initial-state]])
(def state! (atom initial-state))
(def server (start-app! state! 8080))

Then you can make whatever changes you like.

To stop and start the the app in the REPL (e.g. if you change routes), do:

(.stop server)
(def server (start-app! state! 8080))

You can also build an uberjar and run from the command line:

$ lein uberjar
$ java -jar a2-clojure-todo-app-0.1.0-standalone.jar [args]

License

Copyright © 2017 David Harlan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Other Content

The Clojure logo on the index page is from Wikipedia.

a2-clojure-todo-app's People

Contributors

dkharlan avatar

Watchers

 avatar  avatar

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.