GithubHelp home page GithubHelp logo

tylerperkins / owlet-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codefordenver/owlet-api

0.0 1.0 0.0 132 KB

"Children are the messages we send to the future" -- Alan Kay

Clojure 86.79% CSS 3.86% HTML 7.67% JavaScript 1.68%

owlet-api's Introduction

owlet-api

Code Climate Issue Count

generated using Luminus version "2.9.10.26"

SETUP

Prerequisites:

  • Java 1.8 or greater

  • You will need Leiningen 2.0 or above installed.

Database stuff:

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

Environment Variables:

  • 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"

Running:

To start a web server for the application, run:

lein run

Dev Workflow Notes:

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.

owlet-api's People

Contributors

dviramontes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.