baetyl

command module
v0.0.0-...-6947385 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 19 Imported by: 0

README

Baetyl

GitHub go.mod Go version Go Report Card GitHub Workflow Status (with branch) GitHub GitHub code size in bytes

A lightweight SDK for Go web development. Fork me. Preconfigured with:

  • Kubernetes (coming soon)
  • Docker
  • Postgres
  • Go
  • Adminer
  • React
  • TypeScript
  • Sass
  • Mercure (coming soon)
  • Command, and event bus (coming soon)
  • Models, database migrations, and seeders for User, SecurityToken, Role, and Permission

Prerequisites

Development Environment Setup

Clone Repository
cd <projects-parent-directory> && git clone https://github.com/pascalallen/baetyl.git
Add Entry to /etc/hosts File
127.0.0.1       local.baetyl.com
Copy & Modify .env File
cp .env.example .env
Bring Up Environment
bin/up

or (to watch for backend changes)

bin/watch

You will find the site running at http://local.baetyl.com/

Install JavaScript Dependencies
bin/yarn ci
Compile Assets For Development
bin/yarn dev
Watch For Frontend Changes
bin/yarn watch
Take Down Environment
bin/down

Deploying To Kubernetes

Update Container Registry
bin/update-registry Dockerfile ghcr.io/pascalallen/baetyl
Deploy To Kubernetes
kubectl apply -f etc/k8s/deployment.yaml
kubectl apply -f etc/k8s/service.yaml
Check Deployment Status
kubectl get deployments
Check Service Status
kubectl get services
Check All Resources
kubectl get all
Follow Logs
kubectl logs -f baetyl-app
Delete Kubernetes Resources
kubectl delete -f etc/k8s/deployment.yaml
kubectl delete -f etc/k8s/service.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL