Skip to content

julianpeeters/avro2caseclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avro2caseclass

Generate Scala case class definitions from Avro schemas.

Try it at: https://avro2caseclass.herokuapp.com/ (hobbyist account, so give it a sec to rev up)

Screenshot

Supported formats

Please see the avrohugger docs for details

Alternative Distributions

Integrate Avro Scala code-generation into your project:

Dataset

In the spirit of open data, input is collected and made available for download as an Avro datafile.

//TODO: dat data package manager integration

###Creating a Heroku app

Make sure that mongo.default.uri in conf/appication.conf is set to ${MONGOLAB_URI}, then run:

heroku create avro2caseclass
git push heroku master
heroku addons:create mongolab
heroku ps:scale web=1

Development

To develop locally without setting up a MongoLab account, simply start a local MongoDB and point the mongodb.default.uri configuration key to it.

mkdir -p /tmp/avro2caseclass && mongod --dbpath /tmp/avro2caseclass --smallfiles
sbt run -Dmongodb.default.uri=mongodb://localhost:27017/avro2caseclass

Credits

Contributors:

About

Generate Scala case class definitions from Avro schemas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors