https://github.com/mohammadne/pillar
Base code for Go application with CI and deployments added
https://github.com/mohammadne/pillar
Last synced: about 1 month ago
JSON representation
Base code for Go application with CI and deployments added
- Host: GitHub
- URL: https://github.com/mohammadne/pillar
- Owner: mohammadne
- License: apache-2.0
- Created: 2023-06-05T18:15:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T20:42:49.000Z (about 3 years ago)
- Last Synced: 2025-03-11T01:29:13.938Z (over 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pillar
## Introduction
Simple Go application for using as starting point for writing Go applications.
## Usage
1. Clone the repository
```bash
git clone git@github.com:mohammadne/pillar.git
```
2. Change the remote git-origin (replace your own)
```bash
REMOTE_ORIGIN="git@github.com:mohammadne/pillar.git"
git remote set-url origin $REMOTE_ORIGIN
```
3. Update package-name (replace your own)
```bash
REPLACE="username/repository"
LC_ALL=C find . -type f -not -path ".git/*" -exec sed -i "s#mohammadne/pillar#$REPLACE#g" {} +
```
4. Update command descriptions
```bash
vim main.go
vim cmd/server.go
```
5. Update deployment name and create helm charts
```bash
cd ./deployments
# update
vim ./tearup.sh
vim ./teardown.sh
# replace your own application name.
helm create pillar
# update folder names based on the commands.
mv -rf ./pillar ./server
```
6. Update or delete this README.md file based on your needs