emil0r / reverie-template

Leiningen template for reverie
Eclipse Public License 2.0
1 stars 0 forks source link

template is not working with lein #1

Open allyraza opened 9 years ago

allyraza commented 9 years ago

I tried to install this but for some reason

lein new reverie-template mysite

throws an error

Failed to resolve version for reverie-template:lein-template:jar:RELEASE: Could not find metadata reverie-template:lein-template/maven-metadata.xml in local (/Users/foobar/.m2/repository) This could be due to a typo in :dependencies or network issues. If you are behind a proxy, try setting the 'http_proxy' environment variable. Could not find template reverie-template on the classpath.

emil0r commented 9 years ago

Use lein new reverie mysite instead.

allyraza commented 9 years ago

still not working it retrieves the jar but does not generate a template

Retrieving reverie/lein-template/1.0-RC5/lein-template-1.0-RC5.pom from clojars Retrieving reverie/lein-template/1.0-RC5/lein-template-1.0-RC5.jar from clojars Could not find template reverie on the classpath.

emil0r commented 9 years ago

Use [reverie/lein-template "1.0-RC6-SNAPSHOT"] and it should work.

allyraza commented 9 years ago

how do specify snapshot, isn't that suppose to be default?

emil0r commented 9 years ago

Not sure I understand the question. Could you rephrase?

allyraza commented 9 years ago

as you said use rc6 snapshot, how do I run lein new reverie mysite with rc6

emil0r commented 9 years ago

In your profiles.clj for lein:

{:user
 {:plugins [;; other plugins
                 [reverie/lein-template "1.0-RC6-SNAPSHOT"]
                ;; other plugins
                ]
   ;; rest of profile
  }}
allyraza commented 9 years ago

clojure newbie still trying to learn. also there is no joplin.jdbc:joplin.jdbc:jar:0.3.4-SNAPSHOT I believe the latest is 0.3.3 I just checked on clojars

Could not find artifact joplin.jdbc:joplin.jdbc:jar:0.3.4-SNAPSHOT in clojars (https://clojars.org/repo/) This could be due to a typo in :dependencies or network issues. If you are behind a proxy, try setting the 'http_proxy' environment variable.

emil0r commented 9 years ago

Sorry... this is all stuff that has been lagging in getting fixed :). I've pushed a new snapshot of reverie-sql to clojars that uses joplin 0.3.3 and I've tested it locally on my machine that it works.

Requirements: postgres version 9.x (I believe, not using too many fancy features of postgres) A database created in postgres for your newsite with approriate access. Clojure 1.6

Do the following: lein new reverie newsite cd newsite lein run :command :init Fill in the details. Fire up your editor and go into REPL mode. Navigate to dev.clj and follow instructions.

Notes: reverie requires postgres to run as I've not had time to work with other RDBMS's yet. In order to actually run the system you will need to be in the REPL. Theoretically you should be able to use the reload middleware (which is used in dev mode) to just have something running and then have the files automatically reloaded. However... you would then very quickly find problems with migrations which is one of the things you'll have to deal with quite heavily in a CMS, so my recommendation would be to embrace the REPL.

You can see examples of implementations in reverie-batteries under the reverie repo. You've also got reverie-blog which is a bit more advanced than reverie-batteries. modules/auth under reverie-sql also has some stuff which can be of interest to study.

Hope that helps :)

emil0r commented 9 years ago

Ah right...

Once it's up and running the admin area lies under /admin

allyraza commented 9 years ago

still requires joplin.jdbc 3.4 which is not available on clojars

emil0r commented 9 years ago

Waiting for juxt to push a change there that fixed a bug which made it impossible for me to work with reverie in development. Once that's been pushed I'll push out an alpha so it's no longer a moving target.

emil0r commented 9 years ago

joplin 0.3.4 is now added to clojars. I've pushed a new version of both reverie-core and reverie-sql (0.7.0-SNAPSHOT) to clojars and things should hopefully work now.