counter-api

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT

README

counter-api

Access counter API for isso blog.

This code explained in the blog post here.

Getting Started

  1. Clone the repository
git clone git@github.com:isso-719/counter-api.git
  1. Install the dependencies
cd counter-api
go mod download
  1. Auth on Google Cloud
gcloud auth application-default login
  1. Create .env file (REGION is optional, but if you deploy with deploy script, it's required)
cp .env.example .env

vi .env
(edit the .env file with your values)
  1. Run the application
go run cmd/main.go

Deploy

  1. Set Google Cloud project
gcloud config set project <project-id>
  1. Deploy
make deploy

Directories

Path Synopsis
lib
src
repository
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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