Giter Club home page Giter Club logo

ambient-api's Introduction

Getting Started

Workstation Setup

Here's what you need on your workstation to work on both the api and the iOS app:

  • XCode and Command Line Tools

  • Java 7 JDK

  • Ruby 1.9.3

      curl -L https://get.rvm.io | bash -s stable
      rvm install 1.9.3
      rvm use 1.9.3
    
  • Homebrew

      ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
    
  • A bunch of other packages

      brew install git
      brew install scala --with-docs
      brew install mongo && mongod &
      gem install heroku-toolbelt
      gem install foreman
      gem install cocoapods && pod setup
    

Building

Make sure you've got Mongo running, and just execute:

rake

Running

Use sbt for local development on port 8080:

./sbt container-start

Or use foreman to start the bundled app via Procfile on port 5000:

foreman start

Deploying to Heroku

In order to be able to push to Heroku, you need to add it as a remote repo to your git config:

heroku git:remote -a ambient-api

Given you've been granted the apropriate permissions, you can then deploy the app:

rake deploy

Facebook SDK API Reference (optional)

In order to get access to the Facebook SDK docs from within XCode, download and install the SDK.

JRebel (optional)

JRebel can be set up with sbt so that code changes can be reloaded without server restarts.

Registration

  1. Register for free Scala Plan

  2. Download latest "no-setup" archive

  3. Unpack and run bin/jrebel-config.sh

  4. Select "myJRebel" option in GUI

  5. Grab authentication token from website (via "Activate JRebel" link) and paste into GUI

  6. Add following line to your ~/.bash_profile

    export SCALATRA_JREBEL="tools/jrebel/jrebel.jar"
    
  7. Clean up:

    rm -rf ~/.jrebel
    

Note: I'm actually not sure if steps 2 -5 are really necessary.

Usage

In order to get JRebel to automatically reload changed code, start the app like this:

./sbt
container-start
~ copy-resources

ambient-api's People

Contributors

patforna avatar

Watchers

 avatar  avatar  avatar  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.