Giter Site home page Giter Site logo

heroku-finagle-rogue's Introduction

Heroku Finagle Rogue App

This is a minimal Scala app targeting deployment to Heroku.
Its web layer is based on Finagle and its persistence layer on Rogue.
Basically, this app's a RESTful service API.

Dev

The app's persistence layer depends on MongoDB, so start it:

$ mongod

Additionally, Memcached is being used, so e.g.:

$ memcached -vv

To run the app locally via foreman:

$ gem install foreman
$ foreman start

Then point your browser to this URL:

http://localhost:5000/

Note: you need to build before (see below).

To compile + package Scala on-the-fly
via sbt 0.10:

$ sbt
> ~package

For compiling/packaging once just leave off the ~.

To make an assembly of all sbt project lib dependencies:

$ sbt
> assembly:package-dependency

Deploy

$ gem install heroku
$ heroku create --stack cedar
$ heroku addons:add mongolab
$ heroku config

Now, adjust src/main/resources/props/production.default.props according to MONGOLAB_URI.
Plus, rebuild application.jar (via sbt package) to include this config update.

$ heroku config:add LIFT_PROD=-Drun.mode=production
$ git commit -am 'Make it ready for production.'
$ git push heroku master

Then, make the project's lib dependencies JAR (via sbt assembly:package-dependency).

$ git commit -am 'Add lib dependencies.'
$ git push heroku master
$ heroku open

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.