gozen

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: MIT

README

Circle CI

What is this?

This is like a MVC web framework to create Go project that is a combination of the following.

We don't think this project is best practice, so we have some plans to improve this.

Usage

1.Create your project directory.

$ mkdir -p <your project>/src

2.Set GOPATH environment.

$ export GOPATH=<your project>

3.Git clone gozen

$ git clone https://github.com/techvein/gozen.git $GOPATH/src/gozen

4.After run mysql, setup mysql

$ cd $GOPATH/src/gozen
$ mysql -u root -prootpass < db/setup/mysql.sql

5.Run setup (install libraries)

$ go get bitbucket.org/liamstask/goose/cmd/goose
$ go get -u github.com/kardianos/govendor
$ cd $GOPATH/src/gozen && govendor sync
$ go run $GOPATH/src/gozen/tools/setup.go

6.Run build.

$ cd $GOPATH/src/gozen
$ ./build.sh

7.Check the response

$ curl http://localhost:9000/api/user/profile
{"message": "ログインしてください。"}

With Intellij Idea

  1. Open <your project> from File -> Open...
  2. Setup GOPATH
    1. Open Preferences(⌘,) -> Languages & Frameworks -> Go -> Go Libraries
    2. Add two paths(<your project> path and <your project>/src/gozen/vendor path) to Project libraries.
  3. Run $GOPATH/src/gozen/symlinkVendor.sh to completion the libraries that installed by a vendor tool within Intellij Idea.

With Docker

TODO

With vagrant

TODO

Contribution

Contributions to this project are welcome.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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