Skip to content

Maikol/recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migrations

lein repl
(use 'lobos.core 'lobos.connectivity 'lobos.config 'lobos.migration 'lobos.migrations)
(binding [*src-directory* "src/clj/"] (migrate))
(binding [*src-directory* "src/clj/"] (rollback))
(binding [*src-directory* "src/clj/"] (reset :all)) ;; Resets all migrations (cleans the db)

Korma

lein repl
(use 'korma.db 'korma.core 'recipes.db.schema 'recipes.db.core)
(select recipes (with ingredients))

Models

Recipe

id (auto inc)
name
instructions
avatar_url
ingredients (has many)
created (Date now)

Ingredient

id (auto inc)
name
units
quantity
recipe_id (belongs to recipe)
created (Date now)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published