https://github.com/agung96tm/go-simple-web-application
A Simple Web Application Example for Handling Modern API Technologies.
https://github.com/agung96tm/go-simple-web-application
example go golang graphql grpc rest-api web
Last synced: 11 days ago
JSON representation
A Simple Web Application Example for Handling Modern API Technologies.
- Host: GitHub
- URL: https://github.com/agung96tm/go-simple-web-application
- Owner: agung96tm
- License: mit
- Created: 2024-09-13T12:45:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T22:58:13.000Z (over 1 year ago)
- Last Synced: 2025-04-05T19:41:29.297Z (10 months ago)
- Topics: example, go, golang, graphql, grpc, rest-api, web
- Language: Go
- Homepage: https://www.postman.com/speeding-comet-3687/workspace/go-simple-web-application
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Go Simple Web Application
===========================================
A Simple Web Application Example for Handling Modern API Technologies.
## How To Run
Grpc
### GRPC
[Postman - Grpc Collections](https://speeding-comet-3687.postman.co/workspace/go-simple-web-application~065c4dbd-4d8b-4802-ad49-92204f55f90b/collection/66e41c18164c0b4d4fad3da7?action=share&creator=2399435)
#### Install migration & Run database
```shell
# migration
$ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$os-$arch.tar.gz | tar xvz
# database
docker-compose up -d --build
```
#### Copy Env
```shell
cp .envrc.example .envrc
```
#### Build Proto
```shell
make proto_build
```
#### Run Migrate
```shell
make migration/up
```
#### Run Application
```shell
make run/rpc
```
RestAPI
### RestAPI
[Postman - RestAPI Collections](https://speeding-comet-3687.postman.co/workspace/go-simple-web-application~065c4dbd-4d8b-4802-ad49-92204f55f90b/collection/2399435-f78615be-c851-41a4-a03f-81ae6933472e?action=share&creator=2399435)
#### Install migration & Run database
```shell
# migration
$ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$os-$arch.tar.gz | tar xvz
# database
docker-compose up -d --build
```
#### Copy Env
```shell
cp .envrc.example .envrc
```
#### Run Migrate
```shell
make migration/up
```
#### Run Application
```shell
make run/rest
```
Web
### Web
#### Install migration & Run database
```shell
# migration
$ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$os-$arch.tar.gz | tar xvz
# database
docker-compose up -d --build
```
#### Copy Env
```shell
cp .envrc.example .envrc
```
#### Run Migrate
```shell
make migration/up
```
#### Run Application
```shell
make run/web
```
GraphQL
### GraphQL
[Postman - GraphQL Collections](https://speeding-comet-3687.postman.co/workspace/go-simple-web-application~065c4dbd-4d8b-4802-ad49-92204f55f90b/collection/66e862a687e11a120bf6615d?action=share&creator=2399435)
#### Install migration & Run database
```shell
# migration
$ curl -L https://github.com/golang-migrate/migrate/releases/download/$version/migrate.$os-$arch.tar.gz | tar xvz
# database
docker-compose up -d --build
```
#### Copy Env
```shell
cp .envrc.example .envrc
```
#### Run Migrate
```shell
make migration/up
```
#### Run Application
```shell
make run/graphql
```
## Contributors
* Agung Yuliyanto
* [Github](https://github.com/agung96tm)
* [LinkedIn](https://www.linkedin.com/in/agung96tm/)