MikeRalphson / atlas

the global video & audio index

Home Page:http://atlas.metabroadcast.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and Run Atlas

The Atlas source-code is hosted at github.com/atlasapi and is split across 5 projects:

Additionally, github.com/atlasapi/atlas-client hosts the Java client library. github.com/atlasapi/atlas is the main entry point and you don't need the others unless you're interested in updating them too.

MongoDB

Atlas, and specifically atlas-persistence, uses MongoDB to store its indexed content. Atlas doesn't come packaged with MongoDB so you'll need to make sure it's installed - Download MongoDB.

During test runs, Atlas will run integration tests against a mongo running on port 8585. If one isn't running then it'll try and start one, assuming that mongod is available on its path, so either keep one running or make sure you've added mongo/bin to your path.

The running Atlas instance requires that MongoDB be running on its standard port:27107 and ZooKeeper/Kafka: running locally. Please make sure you've kicked them off.

Maven

Atlas uses Maven for all it's dependency and build management, so you'd better have mvn available on your path! We've included the MetaBroadcast public repo which houses all the dependencies that haven't been mavenised, and all our successful builds deploy to it so it has the latest atlas SNAPSHOTs available. This means you don't have to build the other atlas projects, if you don't want to.

It's worth noting that we don't current have a formal release process and everything's currently a SNAPSHOT release. We're sorry if this is a pain and we have every intention of creating some proper releases soon, when life has calmed down a bit.

Building and Running

So, to get everything built and ready:

mkdir /data                                      # Required for feed processing
git clone http://github.com/atlasapi/atlas.git
cd atlas
mvn clean install

This will download all the dependencies, compile the code and run the tests (make sure mongo's setup). To actually run the project locally:

mvn jetty:run -Dprocessing.config=true -Dupdaters.bbc.enabled=true -Djetty.port=8282 # Atlas processing
mvn jetty:run -Dprocessing.config=false                                              # Atlas front-end

This will startup Atlas locally using the lovely Jetty.

Go to

http://localhost:8282/system/scheduler

and run "BBC Ion schedule update (today only)" to ingest the BBC schedule for today. When that completes, run "BBC Mongo Schedule repopulator" to generate the schedule.

Then go to

http://localhost:8080/3.0/schedule.json?from=now.minus.3h&to=now.plus.10h&channel=bbcone&publisher=bbc.co.uk 

for some of today's BBC One schedule. You may need to modify the 'from' and 'to' parameters, depending on the time of day.

Enjoy!

Contributions

We welcome contributions to Atlas! If you'd like to get your hands dirty, please fork the repositories and submit pull requests with your changes.

About

the global video & audio index

http://atlas.metabroadcast.com/

License:Apache License 2.0


Languages

Language:Java 82.9%Language:HTML 13.7%Language:JavaScript 2.4%Language:CSS 0.7%Language:Python 0.1%Language:Shell 0.0%