Skip to content

Commit

Permalink
makefile and post man collection
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattaraibishal50 committed Sep 1, 2020
1 parent 2c2756b commit 6fb23b0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
serve:
fresh
cd /workspace/blog/services/firebaseLogin/functions
firebase serve
fresh
dev:
go run main.go
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
ginSwagger "github.com/swaggo/gin-swagger"
)


// @contact.name readytowork
// @contact.url http://readytowork.jp
// @contact.email [email protected]
Expand All @@ -24,7 +25,7 @@ func main() {
docs.SwaggerInfo.Title = "Blog Application"
docs.SwaggerInfo.Description = "This is a sample server for Blog Application"
docs.SwaggerInfo.Version = "1.0"
docs.SwaggerInfo.Host = "localhost:8080"
docs.SwaggerInfo.Host = "https://8080-c6fca9c0-4e36-41d2-86db-511a4134a8bf.ws-us02.gitpod.io"
docs.SwaggerInfo.BasePath = "/"
docs.SwaggerInfo.Schemes = []string{"http", "https"}

Expand Down
2 changes: 2 additions & 0 deletions services/firebaseLogin/MakeFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
serve :
firebase serve
Binary file modified tmp/runner-build
Binary file not shown.
3 changes: 3 additions & 0 deletions user/repository/userRepp.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func NewFirebaseAuthRepo() UserRepository {
// If you want to sign in as a user, you need to use the Firebase Authentication SDK.
func (*firebaseAuthRepo) Login() {
// checks the user by email and the password


// request body (payload)
usersRecord, err := fbAuth.GetUser(ctx, "5ZamU26mXsOYmCrankcEGTujgsj2")
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit 6fb23b0

Please sign in to comment.