bee-gorm-graphql

command module
v0.0.0-...-0dc708d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2016 License: MIT Imports: 5 Imported by: 0

README

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/zohararad/bee-gorm-graphql
$ cd $GOPATH/src/github.com/zohararad/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!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL