Skip to content

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.

License

Notifications You must be signed in to change notification settings

brunocalmon/echo-initializr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

    • -h, --help

    help for init

    • -n, --namespace [string]

    Set your project's name (default: github.com/example/sample)

    • -o, --outputDir [string]

    Set the output directory to your project. (default "$HOME/echo_initializr")

    • -p, --port [int]

    Set the port of your project webserver. (default 8080)

    • -v, --version [string]

    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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages