Before cloning this repository, make you sure you have the following installed:
- Golang
1.7.x
or higher - GCC for your operating system (prefarably linux or MACos) very Important.
- Postgresql
- Nodejs and npm
After installing all of the above:
- clone the repository to $GOPATH/src/github.com/tonyalaribe/mybonways like this: (Assuming you have your $GOPATH setup correctly)
$ go get github.com/tonyalaribe/mybonways
- Next install buffalo:
$ go get -u -v github.com/gobuffalo/buffalo/buffalo
- change directory to the repo ($GOPATH/src/github.com/tonyalaribe/mybonways) and Install javascript modules:
$ npm install
- Set up your database correctly according to the database.yml OR run:
$ 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.