Skip to content
April 27, 2013 / edeustace

New SBT plugin to facilitate seeding your mongo database

I’ve created a new sbt plugin to simplify seeding your mongo db in your SBT projects.

All the information needed is here: https://github.com/edeustace/mongo-db-seeder.

Once you install it you simply call:

seed-dev
seed-test
seed-prod

It will then seed a database based on the seed files you have within your project. Enjoy!

Advertisements

2 Comments

Leave a Comment
  1. Gokillo (@gokillo_inc) / Oct 21 2013 1:59 pm

    Very interesting stuff… that’s exactly what I’ve been looking for. I’ll try it to seed collections like countries, languages, etc., where documents just need to be created once before the application goes online. If I’ve well understood, I’ve to provide the db url and then issue the command seed-xxx. Does it also work with Play?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: