Before cloning this repository, make you sure you have the following installed:
1.7.x
or higherAfter installing all of the above:
$ go get github.com/tonyalaribe/mybonways
$ go get -u -v github.com/gobuffalo/buffalo/buffalo
$ npm install
$ buffalo db create -a
buffalo will automatically setup the database.
NOTICE: If for any reason buffalo throws any errors of packages not found, change to its directory:
$ cd $GOPATH/src/github.com/gobuffalo/buffalo/
and install it's dependencies (go get ./...
)
$ go get ./...
Create the tables by running the migrations:
$ buffalo db migrate up
Add data to the database for development:
$ buffalo task db:seed
Finally, start the application (in the repository directory $GOPATH/src/github.com/tonyalaribe/mybonways):
$ buffalo dev
This buffalo command will watch the application and automatically rebuild the Go binary and all it's assets. Open your browser to localhost:3000. The page should appear.
Go over to http://gobuffalo.io to explore the buffalo documentation.