[WIP] pre-alpha, doesn't do anything, might burn your house down.
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
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.
7g deploy initialize
7g deploy branch feat/nonsense
7g deploy destroy
[TODO]
[TODO]
[TODO]
Building and running the web service during development is done using:
make setup
make
SG_CONFIG=configs/config.yml ./target/7g daemon
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.
http://localhost:3000/v1/deploy/initialize
http://localhost:3000/v1/deploy/branch/<branch_name>
http://localhost:3000/v1/network/populate
POST
returns?
POST
takes yaml file
http://localhost:3000/v1/network/automate
GET
returns?
POST
takes xlsx file?
- API key
- server settings?
http://localhost:3000/v1/config/:key/
GET
POST
To contribute to development ...
python3 -m venv .venv
pip install pre-commit
pre-commit install
During development the server can be run using air
for hot-reloading with make server
.