Added more details about setup

This commit is contained in:
Julien Eluard 2017-07-26 23:50:08 +02:00 committed by Teemu Patja
parent ce2dc78fcb
commit cf233c9d40
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 29 additions and 9 deletions

3
.gitignore vendored
View File

@ -2,6 +2,9 @@
/lib /lib
/classes /classes
/checkouts /checkouts
/out
/resources/public/js/compiled
/resources/public/css/style.css
pom.xml pom.xml
*.jar *.jar
*.class *.class

View File

@ -11,30 +11,47 @@ https://commiteth.com
## Prerequisites ## 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 ## Running
lein run Launch following commands each in its own shell:
lein figwheel
lein less auto ```
lein run
lein figwheel
lein less auto
```
## Testing ## Testing
### Clojure tests ### Clojure tests
lein test ```
lein test
```
### ClojureScript tests ### ClojureScript tests
```
lein with-profile test phantom test lein with-profile test doo phantom test
```
### Reagent component devcards ### Reagent component devcards
lein with-profile test figwheel devcards ```
lein with-profile test figwheel devcards
```
Open http://localhost:3449/cards.html Open http://localhost:3449/cards.html