honst / bee-gorm-graphql

Example application with Beego + Gorm + graphql-go in the backend & Vue.js in the frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beego, Gorm, GraphQL & Vue.js demo

This app is a demo of using a Beego powered backend, with a Vue.js powered frontend.

Server-Side

  • Beego - Golang powered Web framework.
  • Gorm - Golang ORM - used instead of Beego's ORM due to better support of Postgres features (and fun).
  • graphql-go - Golang implementation of GraphQL.

Client-Side

  • Vue.js - used to build the UI components.
  • Vuex - state management for Vue.js.
  • Vue Router - router for Vue.js, using for routing support.
  • Bulma - CSS framework used to for UI components.

Setup

  • Install Node.js & Golang (project was developed on Golang v1.7)
  • Install glide for Golang dependency management.
  • Install yarn for client-side dependency management.
  • Run the following:
$ go get github.com/honst/bee-gorm-graphql
$ cd $GOPATH/src/github.com/honst/bee-gorm-graphql
$ yarn install
$ glide up
$ go get github.com/beego/bee
$ npm run build
$ bee run #open http://localhost:8080

Next Steps

Credits

GraphiQL UI is embedded as is. This was blatantly "ripped off" from the graphql-go Github repo StarWars Example

Todo

  • Tests are missing completely - Will add them as time goes by

Contributions

Pull Requests are more than welcome!

About

Example application with Beego + Gorm + graphql-go in the backend & Vue.js in the frontend

License:MIT License


Languages

Language:Go 36.7%Language:JavaScript 26.9%Language:Vue 23.8%Language:Smarty 6.5%Language:HTML 3.8%Language:CSS 2.4%