Coder Social home page Coder Social logo

peh's Introduction

peh3

peh (PNDLM Environment Helper) is a tool by PNDLM for building simple, reliable, reusable software development environments based on Docker Stack.

Philosophical goals—

  • Minimize pre-requisite installation requirements on dev machines
  • Limit custom tooling and abstraction; directly leverage great off-the-shelf tooling wherever possible
  • Remain dev/deploy platform agnostic

Components are—

  • A Golang CLI library (https://github.com/pndlm/peh/peh3) with common various docker/npm/dev-ops functions, commands and shortcuts
  • A project-template used to kick off new software project git repositories that are based on peh
    • Project-specific CLI utility— the template contains a utility app in /peh/src that ingests the peh3 library and is customizable to whatever the project needs
  • A global helper utility that allows one to type peh at the command-line within any peh project and run its specific CLI utility

Setup

Install the base pre-requisites—

Install the global peh helper on your development machine—

GOPROXY=direct go install github.com/pndlm/peh/helper/peh@latest

# If Go isn't already in your path, add it
# Please interpret for the shell of your choice
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> ~/.bashrc

After a shell restart or reboot, you should now be able to run peh at your command-line to see a list of available commands.

Adding peh3 to an existing peh2 project

  • Copy a fresh peh directory into the project:
cd projectdir
npx degit pndlm/peh/project-template/peh peh --force
  • Add use ./peh/src to go.work file as necessary
  • Grep and replace all instances of pndlm.com/example-project with a customized name e.g. client.com/appname/peh
  • Install dependencies:
cd peh/src
go get github.com/pndlm/peh/peh3
go work sync

Developing on peh3 library

To develop and test changes to peh3 library alongside of a consuming project, check out this repository next to your active project and review/uncomment the replace directive at the bottom of your project's /peh/src/go.mod file.

WIP

  • New project creation instructions
# don't forget to install the latest version of the library....
GOPROXY=direct go get github.com/pndlm/peh/peh3
  • Add docker-compose.yaml and README to project-template
  • Test fully new installation
  • Make creating a new installation a command on peh helper itself ?
  • Allow use of both docker compose & docker stack ?

peh's People

Contributors

cblackcom avatar codecommander avatar

Watchers

 avatar  avatar aPelican 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.