Skip to content

Contains the sourcecode for Scalabitz.com. Built with Scala/Play/ReactiveMongo.

License

Notifications You must be signed in to change notification settings

sandermak/scalabitz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalabitz logo

See what the Scala community shares

Scalabitz.com is a site that surfaces interesting Scala content around the web using Bit.ly's API. Read this blogpost for a more in-depth description of the project.

Build

Since the app is a standard Play app, it is built using SBT. There is one dependency outside of core Play to the play2-reactivemongo extension, which in turns has a transitive dependency on the ReactiveMongo driver.

Deployment

Currently, this app is deployed on Heroku. However, it is just a plain Play application and can be deployed anywhere. Note that the conf/application.conf takes several configuration values from environment variables. To run the app, create a script that provides the correct values for these parameters. An example:

#!/bin/sh
export MONGOHQ_URL="mongodb://localhost:27017/scalabitz"
export DBNAME=scalabitz
export APP_SECRET='generated secret by Play'
export BITLY_TOKEN=<your bitly secret token>
export TWITTERCKEY=<twitter consumer key>
export TWITTERCSECRET=<twitter consumer secret>
export TWITTERAKEY=<twitter access token>
export TWITTERASECRET=<twitter access token secret>
export USERNAME=<username for the admin section>
export PASSWORD=<password for the admin section>
# publishing interval in minutes
export TIMEOUT=10
play clean-all run 

As can be deduced from the MONGOHQ_URL variable name, the site currently uses a hosted Mongo instance from MongoHQ. However, any valid MongoDB connection string may be provided. Like an instance on localhost in the example above.

About

Contains the sourcecode for Scalabitz.com. Built with Scala/Play/ReactiveMongo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages