Skip to content

Instantly share code, notes, and snippets.

@amitrathore
Created February 2, 2013 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitrathore/4699679 to your computer and use it in GitHub Desktop.
Save amitrathore/4699679 to your computer and use it in GitHub Desktop.
(ns cms.data
(:require [cms.domain.author :as au]
[cms.domain.article :as ar]))
(defn setup []
(au/create "Siva" "s@e.com")
(au/create "Amit" "a@e.com")
(let [siva (au/find-by-email "s@e.com")]
(au/add-article-with-tags siva "Datomic Workshop" "Datomic is cool" :category/tech ["database" "logic"])
(au/add-article-with-tags siva "Walking around" "Walking is good, mmkay?" :category/fun ["health" "exercise" "logic"])
(au/add-article-with-tags siva "Sleeping in" "Laziness is functional" :category/fun ["coding" "health"])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment