Coder Social home page Coder Social logo

clojure-west-app's Introduction

clojure-west-app

Prerequisites

You will need Leiningen 2.0.0 or above installed.

Description

This application goes through a series of 3 refactors/changes to the user->animal query:

  1. a simple implementation to get from the user to all of the animals that they are able to see
  2. refactoring the previous query a. the first refactor splits it into 2 smaller queries where the results of on can be used as an input for the other b. the second refactor uses query rules instead
  3. adds another client into the mix, so now, for certain users they will be able to have an association directly to the animal, which still respecting the previous path

Creating the dev db

(require '[clojure-west-app.db :as db])
(require '[clojure-west-app.query :as query])
(require '[clojure-west-app.paws-data :as data])

(db/delete-database "gene-and-louise")
(db/create-database "gene-and-louise")

(db/transact-schema "gene-and-louise")
(db/transact "gene-and-louise" data/seed-data)

Creating the test db

start your transactor: bin/transactor config/dev-transactor.properties run cat test-db-setup.clj | lein repl

Running the specs

after creating the test db (above), run lein test

To start the console

bin/console -p 8080 dev datomic:dev://localhost:4334/

clojure-west-app's People

Contributors

elizabethengelman avatar

Stargazers

Mauro De Giorgi avatar

Watchers

 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.