Coder Social home page Coder Social logo

geng's Introduction

geng Documentation [WIP]

Fullform: Generate Golang Project

Introduction

  • Inspired by Nest CLI geng is command-line interface tool that helps you to initialize, develop, and maintain your Go gin applications
  • By default it will generate the clean code architecture of wesionaryTEAM

Installation

go install github.com/mukezhz/geng@latest

Alternative Install

  • Download and execute binary by downloading from assets

Add binary dir to your PATH variable [If geng command didn't work after installation]

// For zsh: [Open.zshrc] & For bash: [Open .bashrc]
// Add the following:
export GO_HOME="$HOME/go"
export PATH="$PATH:$GO_HOME/bin"

// For fish: [Open config.fish]
// Add the following:
fish_add_path -aP $HOME/go/bin

Basic workflow

  • Get help
geng help
  • Create a new project
geng new <project-name> -m <project-module-name> [-d <directory>]
  • Use Interactive to create new project
geng new
  • Start project
cd <directory>
cp .env.example .env
go mod tidy

go run main.go
  • Generate module in already existing project
// Project needs to initialize git repository to work module generation
geng gen module <module-name>

NOTE: default supported version is of golang 1.20

TODO LIST:

  • generate a new project
  • get project module, project name and directory as command line argument
  • generate a module
  • refactor the code -> make code clean
  • modify the parent features module.go when new module is added
  • implement CI for assets build
  • allow different template options when building project
  • generate test case template

Diagrams

image

Thank You!!!

geng's People

Contributors

mukezhz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.