Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technosophos/draft-brigade
Draft packs for building Brigade apps
https://github.com/technosophos/draft-brigade
Last synced: 4 days ago
JSON representation
Draft packs for building Brigade apps
- Host: GitHub
- URL: https://github.com/technosophos/draft-brigade
- Owner: technosophos
- License: other
- Created: 2018-04-06T04:26:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T06:37:00.000Z (over 6 years ago)
- Last Synced: 2024-08-03T10:01:48.552Z (3 months ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-AI-kubernetes - Draft Pack for Building Custom Gateways - brigade-gateways-the-easy-way.html) (Uncategorized / Uncategorized)
README
# Draft Packs for Brigade
This project contains Draft packs oriented toward Brigade.
Available Packs:
- brigade-gateway: Quickly create a new Brigade gateway using a base Node.js project.
## Installation
Add this GitHub repo as a pack repository:
```console
$ draft pack-repo add https://github.com/technosophos/draft-brigade
```You can verify that the repository was added using `draft pack-repo list`.
## Brigade-Gateway
Use the `brigade-gateway` pack to rapidly create custom Brigade webhook gateways. You can get a basic Brigade gateway running in under 5 minutes using this JavaScript builder.
To begin using Brigade gateway scaffold, simply do this:
```console
$ mkdir myGateway
$ cd myGateway
$ draft create --pack brigade-gateway
$ # Edit index.js
$ draft up
$ # See your work in progress:
$ draft connect
$ curl $URL_FROM_CONNECT/healthz
```The `index.js` file is pre-configured for rapidly creating an HTTP/HTTPS Brigade gateway. Inside of the `index.js` file, you will find instructions for modifying it to suit your needs.
## Node Starter
The `node` starter pack is an opinionated Node.js application. It has two purposes:
1. Help Node.js developers get a running Kubernetes app in **less than two minutes**
2. Serve as a pattern for other deep language packsTo get started:
```
$ mkdir node-demo
$ cd node-demo
$ draft install --app node-demo --pack brigade-node
$ yarn install # or npm install or whatever you use
```At this point you should have a functional testable app.
```console
$ yarn test
yarn run v1.3.2
mochahello
#world
✓ should return 'hello world'
#boulder
✓ should return 'hello boulder'2 passing (6ms)
✨ Done in 0.42s.
```To run it, do `yarn start`, and it will start a webserver.
To get going with the coding, edit `src/index.js` and build your app!