Libraries, Tools and Frameworks, Database that the Hyperboot App Stack are using:
-
Install ORM, Templates, Router, Middleware go packages:
go get github.com/sipin/gorazor go get github.com/hypermusk/hypermusk go get github.com/jinzhu/gorm go get github.com/go-sql-driver/mysql go get github.com/codegangsta/negroni go get github.com/gorilla/mux go get github.com/phyber/negroni-gzip/gzip
-
Install Hyperboot
go get github.com/sunfmin/hyperboot
-
Bootstrap your App
cd $GOPATH/github.com/{yourname}/{yourapp} hyperboot app --module="hello"
-
Install Webpack, React, jQuery, Bootstrap
brew install npm npm install webpack -g cd hello/react npm install .
-
Create MySQL Database
Install MySQL if you don't have it
brew install mysql
Create the development database
mysql -u root -e "CREATE DATABASE hello_development CHARSET utf8"
-
Generate and Compile javascript, gorazor templates, and hypermusk generated code
cd hello sh refresh.sh
-
Start the app
go run main.go
{Project Root}
mod1
api
cmds
config
db
models.go
db.go
services
tests
web
templates
Home.gohtml
home.go
mod1apihttpimpl
react
package.json
webpack.config.js
api.js
app.js
css.js
main.less
www
index.html
main.go
mod2
... # similiar to mod1
{project_name}
main.go