Giter VIP home page Giter VIP logo

gorm-revel-heroku-json-sample-app's Introduction

Here's a sample (but somewhat realistic) Go webapp that provides a JSON API using Revel and Gorm to connect with Heroku Postgres through their standard DATABASE_URL mechanism.

I just started learning Go, and found this app helpful to create.

I come from a Rails background, and while it takes a lot of work to create something as full-featured, powerful, and flexible as ActiveRecord, I'm pretty darn impressed with Gorm so far. Preloading is one of my favorite ActiveRecord features, and I'm so glad that Gorm has it.

I'm also pretty impressed with Revel, and Go's JSON marshalling.

Hope you find this helpful for starting your own apps too.

For deploying to Heroku, I'm using the Revel Buildpack. To use it, you just have to create your Heroku app like this:

heroku create -b https://github.com/revel/heroku-buildpack-go-revel.git

Then you can just do the usual git remote stuff and git push heroku master.

gorm-revel-heroku-json-sample-app's People

Contributors

gtolle avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

nikkofu

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.