Skip to content

Commit 08a29a3

Browse files
committed
🍙 Added: github issuse page
1 parent 188f5da commit 08a29a3

File tree

9 files changed

+166
-6
lines changed

9 files changed

+166
-6
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug Report 🐞
3+
about: Create a bug report to help improve our project
4+
5+
---
6+
7+
**Bug Description 📝**
8+
A clear and concise description of the bug.
9+
10+
**Steps to Reproduce 🔄**
11+
Steps to reproduce the behavior:
12+
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See the error
17+
18+
**Expected Behavior ✨**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Environment ℹ️**
22+
- Operating System: [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04]
23+
- Go Version: [e.g., go1.17]
24+
- Project Version/Commit: [e.g., 1.2.3 or commit hash]
25+
26+
**Screenshots or Code Snippets 📸💻**
27+
If applicable, add screenshots or code snippets to help explain the problem.
28+
29+
**Additional Context 📚**
30+
Add any other context about the problem here.
31+
32+
**Possible Solution (Optional) 🤔**
33+
If you have any ideas or suggestions on how to fix the bug, please provide them here.
34+
35+
**Related Issues (Optional) 🔗**
36+
If this issue is related to or duplicates another issue, please link it here.
37+
38+
**Labels (Optional) 🏷️**
39+
You can add labels to categorize the bug, e.g., "bug," "needs investigation," "high priority."
40+
41+
**Assignees (Optional) 👤**
42+
You can assign the issue to specific team members or contributors if known.

.github/ISSUE_TEMPLATE/custom.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Custom Issue Template
3+
about: Describe the purpose of this issue template.
4+
5+
---
6+
7+
## Issue Description 📝
8+
9+
Please provide a clear and concise description of the issue.
10+
11+
## Steps to Reproduce 🔄
12+
13+
1. Describe the steps to reproduce the problem.
14+
2. Be specific about what actions led to the issue.
15+
3. Include any error messages or unexpected behaviors encountered.
16+
17+
## Expected Behavior ✨
18+
19+
Explain what you expected to happen when performing the steps above.
20+
21+
## Environment ℹ️
22+
23+
- **Operating System**: [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04]
24+
- **Go Version**: [e.g., go1.17]
25+
- **Project Version/Commit**: [e.g., 1.2.3 or commit hash]
26+
27+
## Screenshots or Code Snippets 📸💻
28+
29+
If applicable, add screenshots, code snippets, or configuration files that help understand the issue.
30+
31+
## Additional Context 📚
32+
33+
Provide any additional context or information related to the issue. This may include related issues, workarounds, or potential solutions.
34+
35+
## Labels (Optional) 🏷️
36+
37+
You can add labels to categorize the issue, e.g., "bug," "enhancement," "feature request."
38+
39+
## Assignees (Optional) 👤
40+
41+
You can assign the issue to specific team members or contributors if known.
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Feature Request 🚀
3+
about: Suggest an idea or improvement for this project
4+
5+
---
6+
7+
## Problem Description 📝
8+
9+
Is your feature request related to a problem? Please provide a clear and concise description of the problem or pain point you're experiencing. For example, "I'm always frustrated when..."
10+
11+
## Proposed Solution ✨
12+
13+
Describe the solution or feature you'd like to see implemented. Be as clear and concise as possible.
14+
15+
## Alternatives Considered 🔄
16+
17+
Have you considered any alternative solutions or features to address the problem? Please provide a clear and concise description of any alternatives you've thought of.
18+
19+
## Additional Context 📚
20+
21+
Is there any additional context or information you'd like to provide about this feature request? You can include screenshots, examples, or any other relevant details to help clarify your request.
22+
23+
## Labels (Optional) 🏷️
24+
25+
You can suggest labels to categorize your feature request, such as "enhancement," "new feature," "improvement."
26+
27+
## Assignees (Optional) 👤
28+
29+
You can specify any team members or contributors who you think might be interested in or responsible for implementing this feature.

{{cookiecutter.project_name}}/air.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tmp_dir = "tmp"
44
log_dir = "log"
55

66
[build]
7-
cmd = "go build -o /tmp/app ./cmd/main.go"
7+
cmd = "go build -o /tmp/app ./cmd/server/*.go"
88
bin = "/tmp/app"
99
delay = 1000
1010

{{cookiecutter.project_name}}/cmd/main.go renamed to {{cookiecutter.project_name}}/cmd/server/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/dian/app"
8-
"github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/dian/config"
7+
"github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/app"
8+
"github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}/config"
99
)
1010

1111
func main() {
@@ -15,3 +15,4 @@ func main() {
1515
port := os.Getenv("SERVER_PORT")
1616
app.Run(fmt.Sprintf(":%s", port))
1717
}
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: '3'
2+
3+
services:
4+
db:
5+
image: "postgres:alpine"
6+
restart: always
7+
environment:
8+
POSTGRES_USER: "postgres"
9+
POSTGRES_PASSWORD: "postgres"
10+
POSTGRES_DB: "phoneguardian"
11+
volumes:
12+
- dev_postgres_data:/var/lib/postgresql/data:Z
13+
- dev_postgres_data_backups:/backups:z
14+
healthcheck:
15+
test: ["CMD-SHELL", "pg_isready -U postgres"]
16+
interval: 10s
17+
timeout: 5s
18+
retries: 5
19+
20+
app_dev:
21+
build:
22+
context: .
23+
dockerfile: ./docker/Dockerfile.dev
24+
image: {{cookiecutter.project_name}}_dev
25+
ports:
26+
- 8000:8000
27+
env_file:
28+
- .env
29+
volumes:
30+
- .:/app
31+
depends_on:
32+
- db
33+
34+
volumes:
35+
dev_postgres_data: {}
36+
dev_postgres_data_backups: {}
37+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3'
2+
3+
services:
4+
app_prod:
5+
build:
6+
context: .
7+
dockerfile: ./docker/Dockerfile.prod
8+
env_file:
9+
- .env
10+
ports:
11+
- 8000:8000

{{cookiecutter.project_name}}/docker/Dockerfile.prod

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY go.mod go.sum ./
1414
RUN go mod download
1515

1616
COPY . .
17-
RUN go build -o {{cookiecutter.project_name}} ./cmd/main.go
17+
RUN go build -o {{cookiecutter.project_name}} ./cmd/server/*.go
1818

1919
############################
2020
## Final Stage ##

{{cookiecutter.project_name}}/go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_name}}
2-
go {{cookiecutter.go_version}}
3-
42

3+
go {{cookiecutter.go_version}}
54
require (
65
github.com/dgrijalva/jwt-go v3.2.0+incompatible
76
github.com/gorilla/mux v1.8.0

0 commit comments

Comments
 (0)