Kbs

golang

openapi

overview https://openapi.tools/ reference openapi https://apis.guru/awesome-openapi3/ code generator https://github.com/OpenAPITools/openapi-generator mock server

k8s

references https://github.com/ramitsurana/awesome-kubernetes microservice on k8s https://ewanvalentine.io/microservices-in-golang-part-1/ minikube start with RABC from https://gist.github.com/F21/08bfc2e3592bed1e931ec40b8d2ab6f5 minikube start –cache-images –vm-driver kvm2 –cpus 4 –memory 4096 –extra-config=apiserver.authorization-mode=RBAC kubectl create clusterrolebinding add-on-cluster-admin –clusterrole=cluster-admin –serviceaccount=kube-system:default logs minikube ssh sudo journalctl -u kubelet -f download kublet https://kubernetes.io/docs/setup/independent/install-kubeadm/ RELEASE=“$(curl -sSL https://dl.k8s.io/release/stable.txt)" mkdir -p /opt/bin cd /opt/bin curl -L –remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl} chmod +x {kubeadm,kubelet,kubectl} curl -sSL “https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE}/build/debs/kubelet.service" | sed “s:/usr/bin:/opt/bin:g” > /etc/systemd/system/kubelet.service mkdir -p /etc/systemd/system/kubelet.service.d curl -sSL “https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE}/build/debs/10-kubeadm.conf" | sed “s:/usr/bin:/opt/bin:g” > /etc/systemd/system/kubelet.

visualization

Visualization

linux

## OpenResty最佳实践 https://legacy.gitbook.com/book/moonbingbing/openresty-best-practices/details

install install official distribution git clone kong # clone the Kong repo (inside the vagrant one) git clone https://github.com/Kong/kong # only if you want to develop a custom plugin, also clone the plugin template git clone https://github.com/Kong/kong-plugin define env export KONG_PLUGINS=bundled,myplugin db schema psql -U postgres <<EOF \x CREATE ROLE kong; ALTER ROLE kong WITH login; CREATE DATABASE kong OWNER kong; CREATE DATABASE kong_tests OWNER kong; EOF psql -d kong -U postgres <<EOF \x DROP SCHEMA IF EXISTS public CASCADE; CREATE SCHEMA IF NOT EXISTS public AUTHORIZATION kong; GRANT ALL ON SCHEMA public TO kong; EOF CREATE USER konga; CREATE DATABASE konga OWNER konga; ALTER USER konga WITH PASSWORD 'new_password'; start

tech stack https://github.com/verekia/js-stack-from-scratch 01 - Node, Yarn, package.json 02 - Babel, ES6, ESLint, Flow, Jest, Husky 03 - Express, Nodemon, PM2 04 - Webpack, React, HMR 05 - Redux, Immutable, Fetch 06 - React Router, Server-Side Rendering, Helmet 07 - Socket.IO 08 - Bootstrap, JSS 09 - Travis, Coveralls, Heroku https://github.com/Lemoncode/react-typescript-samples real case https://github.com/markerikson/redux-ecosystem-links/blob/master/apps-and-examples.md Large open source react/redux projects guide https://gist.github.com/datchley/4e0d05c526d532d1b05bf9b48b174faf https://marmelab.com/react-admin/Tutorial.html https://github.com/piotrwitek/react-redux-typescript-guide https://github.com/sw-yx/react-typescript-cheatsheet https://github.com/sandstorm/typescript-react-app-kickstart-guide boilerplate https://github.com/Can-Sahin/react-boilerplate-typescript.git