Dot Go Simple MVC Generator
Simple MVC Generator
Getting Started
Prerequisites
- httprouter - github.com/julienschmidt/httprouter
- sqlq - github.com/valuppo/sqlq
go get github.com/julienschmidt/httprouter
go get github.com/valuppo/sqlq
Installing
- Get this library using go get
go get github.com/valuppo/dotgo
cd $GOPATH/src/github.com/valuppo/dotgo
go build
go install
How To Use
- Init new project
Required : PROJECT_NAME
Optional : PROJECT_PATH (if not specified it will used current directory '.' as path)
dotgo init <PROJECT_NAME> [PROJECT_PATH]
- Create new Model
Required : MODEL_NAME
cd <PROJECT_DIR>
dotgo model <MODEL_NAME>
- Create new Controller
Required : CONTROLLER_NAME
cd <PROJECT_DIR>
dotgo controller <CONTROLLER_NAME>
Built With
Authors
- Antony Gunawan - Initial work - valuppo
License
This project is licensed under the MIT License - see the LICENSE.md file for details