Echo scaffold is CLI to generate scaffolds for the echo framework.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 529e38a Sep 23, 2018
Permalink
Failed to load latest commit information.
command Use build.Default.GOPATH Sep 12, 2018
template Remove trailing backslash in template Sep 23, 2018
.gitignore first import Sep 5, 2017
README.md first import Sep 5, 2017
echo-scaffold.go Use build.Default.GOPATH Sep 12, 2018
glide.lock first import Sep 5, 2017
glide.yaml first import Sep 5, 2017

README.md

Echo Scaffold

Echo Scaffold is CLI to generate scaffolds for the echo framework. For now the project only supports mongodb and mgo as database.

Installation

go get github.com/mattn/echo-scaffold

Initializing a project

echo-scaffold init <project path>

Creating a model

echo-scaffold model <model name> <field name>:<field type>

Creating a controller

echo-scaffold controller <controller name>

Creating a scaffold

echo-scaffold scaffold <controller name> <field name>:<field type>

Running

go run <project name>.go

Accessing

Open browser, and access to http://localhost:4000. (Default port:4000)

Thanks

This is based on gin-scaffold