Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pascalallen/baetyl
A lightweight SDK for Go web development. Fork me.
https://github.com/pascalallen/baetyl
adminer docker go golang kubernetes mercure postgres react sass typescript
Last synced: 8 days ago
JSON representation
A lightweight SDK for Go web development. Fork me.
- Host: GitHub
- URL: https://github.com/pascalallen/baetyl
- Owner: pascalallen
- License: mit
- Created: 2022-07-22T15:01:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T19:18:50.000Z (over 1 year ago)
- Last Synced: 2024-06-21T09:50:24.378Z (5 months ago)
- Topics: adminer, docker, go, golang, kubernetes, mercure, postgres, react, sass, typescript
- Language: TypeScript
- Homepage:
- Size: 9.45 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Baetyl
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/pascalallen/baetyl)
[![Go Report Card](https://goreportcard.com/badge/github.com/pascalallen/baetyl)](https://goreportcard.com/report/github.com/pascalallen/baetyl)
![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/pascalallen/baetyl/go.yml?branch=main)
![GitHub](https://img.shields.io/github/license/pascalallen/baetyl)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/pascalallen/baetyl)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
- [Docker](https://www.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/)## Development Environment Setup
### Clone Repository
```bash
cd && git clone https://github.com/pascalallen/baetyl.git
```### Add Entry to `/etc/hosts` File
```bash
127.0.0.1 local.baetyl.com
```### Copy & Modify `.env` File
```bash
cp .env.example .env
```### Bring Up Environment
```bash
bin/up
```or (to watch for backend changes)
```bash
bin/watch
```You will find the site running at [http://local.baetyl.com/](http://local.baetyl.com/)
### Install JavaScript Dependencies
```bash
bin/yarn ci
```### Compile Assets For Development
```bash
bin/yarn dev
```### Watch For Frontend Changes
```bash
bin/yarn watch
```### Take Down Environment
```bash
bin/down
```## Deploying To Kubernetes
### Update Container Registry
```bash
bin/update-registry Dockerfile ghcr.io/pascalallen/baetyl
```### Deploy To Kubernetes
```bash
kubectl apply -f etc/k8s/deployment.yaml
kubectl apply -f etc/k8s/service.yaml
```### Check Deployment Status
```bash
kubectl get deployments
```### Check Service Status
```bash
kubectl get services
```### Check All Resources
```bash
kubectl get all
```### Follow Logs
```bash
kubectl logs -f baetyl-app
```### Delete Kubernetes Resources
```bash
kubectl delete -f etc/k8s/deployment.yaml
kubectl delete -f etc/k8s/service.yaml
```