Git Product home page Git Product logo

7g-tooling's Introduction

Go release CircleCI go.dev reference Go Report Card


Tooling Project

[WIP] pre-alpha, doesn't do anything, might burn your house down.

Install

Homebrew

For macOS only, this is the quickest way to get going. This may not be the most up-to-date version.

brew install geoffjay/tap/sg-tooling

Build

Building from source will be the most up-to-date, but is more likely to have errors.

git clone <this repo>
cd 7g-tooling
make

The resulting binary will be at target/7g, at this time there is no make target to install.

CLI

deploy

initialize

7g deploy initialize

branch

7g deploy branch feat/nonsense

destroy

7g deploy destroy

network

[TODO]

populate

automate

daemon

[TODO]

enable

disable

start

stop

status

gql

get-objective

[TODO]

Service

Building and running the web service during development is done using:

make setup
make
SG_CONFIG=configs/config.yml ./target/7g daemon

API

Swagger

Install the swag utility.

go get -u github.com/swaggo/swag/cmd/swag

To build Swagger documentation for the REST API.

make docs
make

Now when running the documentation should be available at http://localhost:3000/swagger/index.html.

Ping

http://localhost:3000/v1/ping

Deployment

Initialize

http://localhost:3000/v1/deploy/initialize

Branch

http://localhost:3000/v1/deploy/branch/<branch_name>

Network

Populate

http://localhost:3000/v1/network/populate

POST

returns?

POST

takes yaml file

Automate

http://localhost:3000/v1/network/automate

GET

returns?

POST

takes xlsx file?

Configuration

  • API key
  • server settings?

http://localhost:3000/v1/config/:key/

GET

POST

Contributing

To contribute to development ...

python3 -m venv .venv
pip install pre-commit
pre-commit install

Running

During development the server can be run using air for hot-reloading with make server.

7g-tooling's People

Contributors

aishmit avatar dependabot[bot] avatar geoffjay avatar

Watchers

 avatar  avatar

7g-tooling's Issues

Use SG_ENV to load different .env files

Currently, the file .env is the only one that is loaded. The package for godotenv has an example on how to load eg. testing/development that would be good to use.

Make repository private

Need to figure out / test:

  • Github actions
  • goreleaser push to tap repo
  • Github token for installing with brew

Improve import workflow

It's a pain to generate the populate and automate input files, it would be better to have the ability to construct the file using a user interface.

Workflow

  • if open in UI
    • load populate/automate file as yaml
  • if create new in UI
    • start with blank
  • display everything in tabs(?) or some other interface type
  • allow edits
  • allow new/delete objects (objectives, badges, etc.)
  • save

Document network setup steps

To have a bare network for provisioning, do the following:

  • create network (not demo)
  • accept admin account
  • create static API token for network admin

Perform initialization and execution

A new user should be able to use the software in some minimal number of steps, eg.

Command-line

brew install geoffjay/tap/sg-tooling
7g init
7g daemon enable
7g daemon start

User Interface

  • open configuration page
  • initialize project if not already initialized
    • clicking init button calls 7g init
  • enable daemon on startup -> 7g daemon enable
  • start daemon -> 7g daemon start

Initialization

  • sets up project directories
  • sets up default configuration

Daemon

Enable

  • copies plist template

Start

  • runs launchctl load com.7geese.tooling

Fix objective import

Importing from yaml creates objective with KR information, but page bails when you visit it.

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.