From cf233c9d4000a13a39547a69d70ebed3548aaa4c Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Wed, 26 Jul 2017 23:50:08 +0200 Subject: [PATCH] Added more details about setup --- .gitignore | 3 +++ README.md | 35 ++++++++++++++++++++++++++--------- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 4ec2ff4..42cf30b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ /lib /classes /checkouts +/out +/resources/public/js/compiled +/resources/public/css/style.css pom.xml *.jar *.class diff --git a/README.md b/README.md index 6656e04..8d67b9f 100644 --- a/README.md +++ b/README.md @@ -11,30 +11,47 @@ https://commiteth.com ## Prerequisites -* You will need [Leiningen][1] 2.0 or above installed. +You will need [Leiningen](https://github.com/technomancy/leiningen) 2.0 or above installed. -[1]: https://github.com/technomancy/leiningen +### PostgreSQL + +Make sure you install [PostgreSQL](https://www.postgresql.org/) and properly set it up: + +``` +sudo -u postgres psql -c "CREATE USER commiteth WITH PASSWORD 'commiteth';" +sudo -u postgres createdb commiteth +``` ## Running - lein run - lein figwheel - lein less auto +Launch following commands each in its own shell: + +``` +lein run +lein figwheel +lein less auto + +``` ## Testing ### Clojure tests - lein test +``` +lein test +``` ### ClojureScript tests - - lein with-profile test phantom test +``` +lein with-profile test doo phantom test +``` ### Reagent component devcards - lein with-profile test figwheel devcards +``` +lein with-profile test figwheel devcards +``` Open http://localhost:3449/cards.html