generated using Luminus version "2.9.10.26"
-
Java 1.8 or greater
-
You will need Leiningen 2.0 or above installed.
With postgres installed on your system (brew install postgres
)
-
createdb owlet_dev
-
createdb owlet_test
-
touch profiles.clj
(from project root) -
Then populate the contents of
profiles.clj
with:{:profiles/dev {:env {:database-url "jdbc:postgresql://localhost/owlet_dev?user=postgres&password=password"}} :profiles/test {:env {:database-url "jdbc:postgresql://localhost/owlet_test?user=postgres&password=password"}}}
-
Migrate all outstanding migrations
lein migratus migrate
- export OWLET_CONTENTFUL_MANAGEMENT_AUTH_TOKEN="ask a cfd member"
- export OWLET_CONTENTFUL_DELIVERY_AUTH_TOKEN="ask a cfd member"
- export OWLET_CONTENTFUL_DEFAULT_SPACE_ID="ask a cfd member"
- export OWLET_ACTIVITIES_CONTENTFUL_DELIVERY_AUTH_TOKEN="ask a cfd member"
To start a web server for the application, run:
lein run
During developement you probably want to proxy request from and to localhost
to contenful. For this you can use something like ngrok
to tunnel the webhook responses:
with ngrok installed (brew cask install ngrok
)
then cd
into /owlet-api directory
lein run
ngrok http 3000
then finally copy and paste the ngrok url into contentful.com webhooks admin page.