Skip to content

Instantly share code, notes, and snippets.

View loopDelicious's full-sized avatar
🌵

Joyce Lin loopDelicious

🌵
View GitHub Profile
var fs = require('fs'),
Converter = require('swagger2-postman2-converter'),
request = require('request'),
config = require('./config.js');
// ###############################################
// define functions to handle conversion and update collection
var secret = require('./secrets.js');
module.exports = {
"collections": [
{
"from": "swagger",
"to": "postman-collection",
"name": "Swagger Petstore",
"collection_uid": "1559979-81f30228-c4e1-8a05-948a-da9cc9bd07db",
"collection_id": "81f30228-c4e1-8a05-948a-da9cc9bd07db"
---
# The main bit: the Deployment of our container.
apiVersion: apps/v1
kind: Deployment
metadata:
name: ddclient
spec:
replicas: 1
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
# UPDATE THIS SECRET BEFORE APPLYING
apiVersion: v1
kind: Secret
metadata:
name: ddclient-secret
data:
ddclient.conf: |
protocol=cloudflare, \
zone=meowsergirl.com, \
@loopDelicious
loopDelicious / index.js
Created May 15, 2020 20:11
Create a `/spacetasks` route using the `GET` method to retrieve a list of chores for the space station
app.get("/spacetasks", (req, res, next) => {
res.json([
"wash the spaceship",
"clean the space kitchen",
"look at the stars",
"repair my space suit"
])
})