gogo-cli

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

CLI to generate projects using GoGo library

Nice library is one thing, but what matters is the ability to set up new projects quickly. If you have just one evening for a new idea, you shouldn't waste 90% of the time to configure webpack and decide on the deployment strategy.

Prerequisites

gogo cli won't let you generate a new project if you don't have all the tools installed. Current requirements are:

  • sqlmigrate - go install github.com/rubenv/sql-migrate/...@latest

  • sqlboiler@v4:

    go install github.com/volatiletech/sqlboiler/v4@latest
    go install github.com/volatiletech/sqlboiler/v4/drivers/sqlboiler-psql@latest
    
  • watchexec site

  • flyctl docs

Ignore flyctl if you want to roll your own deploy

Installation

Install Script

Download gogo-cli and install into a local bin directory.

MacOS, Linux, WSL

Latest version:

curl -L https://raw.githubusercontent.com/can3p/gogo-cli/main/generated/install.sh | sh

Specific version:

curl -L https://raw.githubusercontent.com/can3p/gogo-cli/main/generated/install.sh | sh -s 0.0.4

The script will install the binary into $HOME/bin folder by default, you can override this by setting $CUSTOM_INSTALL environment variable

Manual download

Get the archive that fits your system from the Releases page and extract the binary into a folder that is mentioned in your $PATH variable.

Usage

TBD

Something like this, let's say we want to create a bunny project:

cd ~/code
gogo generate project bunny
# or: gogo generate project bunny --skip-deploy
cd bunny/cmd/web
make watchexec
To Replace in the template
  • <projectname>
  • <projectemail>
  • <projectrepo>
  • <testemailhead> john@mail.wat is split into john and mail.wat
  • <testemailtail>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
generated

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL