echo-initializr
Echo Initializr is a tool created to help developers start projects created in the Echo Framework more quickly, without having to waste time with basic configurations.
Usage
Available Commands:
-
help - Help about any command
-
init - Create a basic project using echo framework from the scratch
- -d, --dependencies stringArray
Set the dependencies of your project. (default: empty)
help for init
Set your project's name (default: github.com/example/sample)
Set the output directory to your project. (default "$HOME/echo_initializr")
Set the port of your project webserver. (default 8080)
Set your project's version (default: installed)
To try, just run this command on the root of the echo-initializr's project
go run main.go init --namespace "github.com/example/sample" -d "github.com/gorilla/mux,github.com/google/uuid" -p 8080
Tips:
RUN
Inside the root of this project:
go build
A executable named "echo-initializr" will be generated.
Place this executable where you prefer, for example:
mv echo-initializr $HOME/go/bin
Now you can just set this in you PATH as variable to use directly in you terminal.
Open the .bash_profile
vim $HOME/.bash_profile
Write this lines: (Assuming that you have placed the executable file in the same folder as me)
export ECHOINITIALZR=$HOME/go/bin
export PATH=$PATH:$ECHOINITIALZR
Now you can run the command anywhere in you terminal:
echo-initializr help