golang-echo-realworld-example-app

command module
v0.0.0-...-528a820 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 7 Imported by: 0

README

Honeycomb take-home test

Instrumenting Conduit backend.

  1. Auto-instrument Echo with the honeycomb wrapper
  2. Add some general context like user.email
  3. Add child spans for articles

If this was serious and it was worth the time:

  1. Create a custom gorm logger that sends child spans
  2. Instrument comments like articles
  3. Use beeline's error unpacking
  4. Add user.email to traces via middleware rather than endpoints

RealWorld Example App

Golang/Echo codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
Demo    RealWorld

Build Status

This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

Getting started

Install Golang (go1.11+)

Please check the official golang installation guide before you start. Official Documentation Also make sure you have installed a go1.11+ version.

Environment Config

make sure your ~/.*shrc have those variable:

➜  echo $GOPATH
/Users/xesina/go
➜  echo $GOROOT
/usr/local/go/
➜  echo $PATH
...:/usr/local/go/bin:/Users/xesina/test//bin:/usr/local/go/bin

For more info and detailed instructions please check this guide: Setting GOPATH

Clone the repository

Clone this repository:

➜ git clone https://github.com/mterhar/golang-echo-realworld-example-app.git

Or simply use the following command which will handle cloning the repo:

➜ go get -u -v github.com/mterhar/golang-echo-realworld-example-app

Switch to the repo folder

➜ cd $GOPATH/src/github.com/mterhar/golang-echo-realworld-example-app
Install dependencies
➜ go mod download
Run
➜ go run main.go
Build
➜ go build
Tests
➜ go test ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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