Skip to content

Commit c5c6e71

Browse files
authored
Initial commit
0 parents  commit c5c6e71

58 files changed

Lines changed: 2943 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.air.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = "."
2+
tmp_dir = "docker/air/tmp"
3+
4+
[build]
5+
bin = "docker/air/tmp/main"
6+
cmd = "go build -o docker/air/tmp/main"
7+
include_ext = ["go"]
8+
exclude_dir = ["vendor", "tmp"]
9+
10+
[log]
11+
level = "debug"

.env.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
APP_NAME=Go.Gin.Template
2+
IS_LOGGER=true
3+
4+
DB_HOST=postgres
5+
DB_USER=postgres
6+
DB_PASS=<your password>
7+
DB_NAME=<your database name>
8+
DB_PORT=5432
9+
10+
NGINX_PORT=80
11+
GOLANG_PORT=8888
12+
APP_ENV=localhost
13+
JWT_SECRET=<your secret key>
14+
15+
SMTP_HOST=smtp.gmail.com
16+
SMTP_PORT=587
17+
SMTP_SENDER_NAME="Go.Gin.Template <no-reply@testing.com>"
18+
SMTP_AUTH_EMAIL=<your email>
19+
SMTP_AUTH_PASSWORD=<your password>

.github/issue-branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
branchName: "is-${issue.number}-${issue.title}"
2+
commentMessage: "Branch ${branchName} created for issue: ${issue.title}"

.github/issue_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Description
2+
3+
## Screenshoot
4+
5+
(Optional)

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Description
2+
3+
Please include a summary of the changes and the related issue.
4+
5+
Fixes #(issue)
6+
7+
## Type of change
8+
9+
Please check all options that are relevant.
10+
11+
- [ ] Bug fix (non-breaking change which fixes an issue)
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
15+
# Screenshot
16+
17+
(Opsional)
18+
19+
# Checklist:
20+
21+
- [ ] I have performed a self-review of my code
22+
- [ ] I have commented my code, particularly in hard-to-understand areas
23+
- [ ] My changes generate no new warnings
24+
- [ ] I have added tests that prove my fix is effective or that my feature works
25+
- [ ] I have made API documentation and example response in Postman
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Create Branch from Issue
2+
3+
on:
4+
issues:
5+
types: [assigned]
6+
7+
jobs:
8+
create_issue_branch_job:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create Issue Branch
12+
uses: robvanderleek/create-issue-branch@main
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/go.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v3
21+
with:
22+
go-version: 1.21
23+
24+
- name: Build
25+
# run go mod tidy and go build -v ./...
26+
run: go mod tidy && go build -v ./...
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Issue AutoLink"
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
issue-links:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: tkt-actions/add-issue-links@v1.6.0
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
branch-prefix: "is-"
15+
resolve: true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.env
2+
storage/
3+
assets/
4+
volumes/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 M Naufal Badruttamam
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)