-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
minkj1992
committed
Jun 25, 2022
1 parent
8857025
commit 22b1567
Showing
9 changed files
with
176 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
credentials.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
.idea | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/**/out/ | ||
/**/*.iml | ||
/**/*.ipr | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
### Gradle template | ||
.gradle | ||
/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!/gradle/wrapper/gradle-wrapper.jar | ||
!/java/gradle/wrapper/gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
# gradle/wrapper/gradle-wrapper.properties | ||
### Java template | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
### macOS template | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
/**/generated/ | ||
/logs/ | ||
/application.pid | ||
/application.port | ||
|
||
# Ignore `bin` dir | ||
*/bin/* | ||
|
||
|
||
.vscode/ | ||
|
||
credentials.json | ||
firebase-credential.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
# pitch backend | ||
> GDG summer hackerton 2022 | ||
|
||
## local | ||
``` | ||
# local | ||
$ make run | ||
``` | ||
|
||
- http://localhost:8080/swagger/index.html | ||
|
||
## prod | ||
|
||
- cloud run ci/cd | ||
- https://cloud.google.com/run/docs/quickstarts/deploy-continuously?hl=en_US#cloudrun_deploy_continuous_code-go | ||
- https://cloud.google.com/build/docs/automating-builds/build-repos-from-github | ||
- [cloud run](https://cloud.google.com/run/docs/quickstarts/deploy-continuously?hl=en_US) | ||
- [cloud sql](https://cloud.google.com/sql/docs/mysql/connect-run) | ||
- https://cloud.google.com/sql/docs/mysql/connect-instance-cloud-run | ||
``` | ||
- http://localhost:8080/swagger/index.html | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,15 @@ const docTemplate = `{ | |
"info": { | ||
"description": "{{escape .Description}}", | ||
"title": "{{.Title}}", | ||
"contact": {}, | ||
"contact": { | ||
"name": "API Support", | ||
"url": "https://minkj1992.github.io", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
}, | ||
"version": "{{.Version}}" | ||
}, | ||
"host": "{{.Host}}", | ||
|
@@ -389,6 +397,9 @@ const docTemplate = `{ | |
"createdAt": { | ||
"type": "string" | ||
}, | ||
"goal": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "integer" | ||
}, | ||
|
@@ -435,12 +446,12 @@ const docTemplate = `{ | |
|
||
// SwaggerInfo holds exported Swagger Info so clients can modify it | ||
var SwaggerInfo = &swag.Spec{ | ||
Version: "", | ||
Version: "1.0", | ||
Host: "", | ||
BasePath: "", | ||
BasePath: "/v1", | ||
Schemes: []string{}, | ||
Title: "", | ||
Description: "", | ||
Title: "Pitch API Server (dobby's)", | ||
Description: "This is a pitch api server.", | ||
InfoInstanceName: "swagger", | ||
SwaggerTemplate: docTemplate, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"contact": {} | ||
"description": "This is a pitch api server.", | ||
"title": "Pitch API Server (dobby's)", | ||
"contact": { | ||
"name": "API Support", | ||
"url": "https://minkj1992.github.io", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
}, | ||
"version": "1.0" | ||
}, | ||
"basePath": "/v1", | ||
"paths": { | ||
"/rooms": { | ||
"get": { | ||
|
@@ -377,6 +389,9 @@ | |
"createdAt": { | ||
"type": "string" | ||
}, | ||
"goal": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "integer" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
basePath: /v1 | ||
definitions: | ||
controller.ResponseTask: | ||
properties: | ||
|
@@ -87,6 +88,8 @@ definitions: | |
properties: | ||
createdAt: | ||
type: string | ||
goal: | ||
type: string | ||
id: | ||
type: integer | ||
name: | ||
|
@@ -115,7 +118,16 @@ definitions: | |
type: string | ||
type: object | ||
info: | ||
contact: {} | ||
contact: | ||
email: [email protected] | ||
name: API Support | ||
url: https://minkj1992.github.io | ||
description: This is a pitch api server. | ||
license: | ||
name: Apache 2.0 | ||
url: http://www.apache.org/licenses/LICENSE-2.0.html | ||
title: Pitch API Server (dobby's) | ||
version: "1.0" | ||
paths: | ||
/rooms: | ||
get: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
host: "localhost:8080" | ||
db-config: | ||
host: "0.0.0.0" | ||
port: 3306 | ||
|