Skip to content

Instantly share code, notes, and snippets.

@dlresende
Last active December 22, 2020 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlresende/90ad7209bb1ec63f66967dd42f4a2da0 to your computer and use it in GitHub Desktop.
Save dlresende/90ad7209bb1ec63f66967dd42f4a2da0 to your computer and use it in GitHub Desktop.

Ruby

$ bundle gem $my_app -t rspec -b

Installing the local gem:

$ gem build $my_app.gemspec
$ gem install $my_app-<version>.gem
$ $my_app

Or to create a simple project:

$ mkdir $my_app
$ cd $my_app
$ bundle init

Go

$ mkdir -p $my_project/cmd/$my_app
$ cd !$
$ go mod init github.com/dlresende/$my_project
$ touch $my_project/cmd/$my_app/main.go

Conventions for file structure: https://flaviocopes.com/go-filesystem-structure/

Useful commands:

$ godoc -http=localhost:6060 # spins up a static server with go docs

Java

$ mvn archetype:generate -DgroupId=$my_app -DartifactId=$my_app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment