messages

command module
v0.0.0-...-8fdf812 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Messages

Go backend for messaging application running gin gonic api server.

Getting started

install docker desktop if not installed yet
brew install --cask docker
Spining up the local cluster

Open docker for desktop and enable the kubernetes engine. To do so:

  1. Go to Settings -> Kubernetes -> enable Kubernetes ✅
  2. Restart docker desktop
Setting the kubectl context right

If you have already installed kubectl and it is pointing to some other environment, such as minikube or a EKS cluster, ensure you change the context so that kubectl is pointing to docker-desktop:

 kubectl config get-contexts
 kubectl config use-context docker-desktop
Deploying applications

Build container:

make build-app

Deploy to local k8s cluster:

 cd deployment
 make deploy-local
Access API server

To access API server at localhost:8080

 make port-forward

Make targets

Here is a list of all available make targets:

  • generate: Generate golang code
  • build-app: Build docker image
  • lint: Carry out linting

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
api

Jump to

Keyboard shortcuts

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