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: about 1 month 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 (almost 2 years ago)
- Last Synced: 2024-11-10T01:39:16.253Z (3 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

[](https://goreportcard.com/report/github.com/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
```