go-simple-web-application

module
v0.0.0-...-ecbf8cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: MIT

README

Go Simple Web Application

A Simple Web Application Example for Handling Modern API Technologies.

How To Run

Grpc
GRPC

Postman - Grpc Collections

Install migration & Run database
# 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
cp .envrc.example .envrc
Build Proto
make proto_build
Run Migrate
make migration/up
Run Application
make run/rpc
RestAPI
RestAPI

Postman - RestAPI Collections

Install migration & Run database
# 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
cp .envrc.example .envrc
Run Migrate
make migration/up
Run Application
make run/rest
Web
Web
Install migration & Run database
# 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
cp .envrc.example .envrc
Run Migrate
make migration/up
Run Application
make run/web
GraphQL
GraphQL

Postman - GraphQL Collections

Install migration & Run database
# 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
cp .envrc.example .envrc
Run Migrate
make migration/up
Run Application
make run/graphql

Contributors

Directories

Path Synopsis
cmd
graphql command
rest command
rpc command
web command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL