-
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
1 parent
3013f05
commit 3f55ab0
Showing
1 changed file
with
75 additions
and
0 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,75 @@ | ||
### BLOG APP (GO LANG) | ||
|
||
This codebase implements the clean architecture [uncle BOB]and the use of different repository such as mysql, firebase. It aims to understand the full-fledged go-lang application with RESTFUL API. | ||
|
||
Objectives of applications: | ||
- user authentication | ||
- post CRUD operations | ||
|
||
# How it works | ||
``` | ||
. | ||
├── common | ||
│ ├── database.go | ||
│ ├── firebase.go | ||
│ └── utils.go | ||
├── config | ||
│ └── config.go | ||
├── go.mod | ||
├── go.sum | ||
├── main.go | ||
├── Makefile | ||
├── middleware | ||
│ └── routes.go | ||
├── post | ||
│ ├── model | ||
│ │ └── postModel.go | ||
│ ├── repo | ||
│ │ └── postRepo.go | ||
│ ├── route | ||
│ │ └── postRoute.go | ||
│ └── usecase | ||
│ └── postUsecase.go | ||
├── public | ||
│ └── favicon.ico | ||
├── README.Md | ||
├── runner.conf | ||
├── serviceAccountKey.json //firebase service account key | ||
├── tmp | ||
│ └── runner-build | ||
└── user | ||
├── model | ||
│ └── userModel.go | ||
├── repository | ||
├── route | ||
│ └── userRoute.go | ||
└── usecase | ||
└── userUsecase.go | ||
``` | ||
|
||
# Getting started | ||
|
||
## Install the Golang | ||
https://golang.org/doc/install | ||
|
||
## Environment Con- fig | ||
make sure your bashrc holds the proper gopath and goroot. | ||
|
||
|
||
## Install Fresh | ||
I used Fresh for hot-reload | ||
|
||
https://github.com/pilu/fresh | ||
``` | ||
go get -u github.com/pilu/fresh | ||
``` | ||
|
||
## Makefile and start dev-server | ||
I have used makefile as service to run and build the package. | ||
``` | ||
➜ make serve | ||
``` | ||
|
||
## Todo | ||
- Add Test module. |