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
- Open <your project> from File -> Open...
- Setup GOPATH
- Open Preferences(⌘,) -> Languages & Frameworks -> Go -> Go Libraries
- Add two paths(<your project> path and <your project>/src/gozen/vendor path) to Project libraries.
- 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.