diff --git a/README.md b/README.md index fcb0384..20827da 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,18 @@ Clojure web app for HTEMBH users You will need [Leiningen][1] 2.0 or above installed. -MySQL with "htembh_dev" database created +[Postgresql][2] 9.3 or above installed +with "htembh_dev" database created +and user that can select and insert on all tables. [1]: https://github.com/technomancy/leiningen - +[2]: https://www.postgresql.org/ ## Breaking changed +htembh 0.3.0 +Project has been updated to be used on postgresql db + htembh 0.2.0 Project is updated to newest version of luminus @@ -27,8 +32,8 @@ Add in root folder (luminus template): and in it: - {:profiles/dev {:env {:database-url "mysql://localhost:3306/htembh_dev?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&user=USERNAME&password=PASSWORD"}} - :profiles/test {:env {:database-url "mysql://localhost:3306/htembh_test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&user=USERNAME&password=PASSWORD"}}} + {:profiles/dev {:env {:database-url "jdbc:postgresql://localhost/htembh_dev?user=(USERNAME)password=(PASSWORD)"}} + :profiles/test {:env {:database-url "jdbc:postgresql://localhost/htembh_dev?user=(USERNAME)&password=(PASSWORD)"}}} @@ -39,7 +44,7 @@ Run migrations: Run sql scripts from resources/sql in this order: - topic.sql > questions.sql > responses.sql > connection.sql + topic.sql > questions.sql > responses.sql > qu_re_connection.sql To start a web server for the application, run: diff --git a/project.clj b/project.clj index 2c642bb..6e5628e 100644 --- a/project.clj +++ b/project.clj @@ -19,7 +19,7 @@ [metosin/muuntaja "0.3.2"] [metosin/ring-http-response "0.9.0"] [mount "0.1.11"] - [mysql/mysql-connector-java "6.0.5"] + ;; [mysql/mysql-connector-java "6.0.5"] [org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.854" :scope "provided"] [org.clojure/tools.cli "0.3.5"]