All Projects → zacscoding → echo-gorm-realworld-app

zacscoding / echo-gorm-realworld-app

Licence: other
realworld application built with Golang + Echo + Gorm

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to echo-gorm-realworld-app

Echo Web
Go web framework Echo example. 在线演示☞迁移ing❌
Stars: ✭ 409 (+2172.22%)
Mutual labels:  echo, gorm
Phalgo
phalgo 已经更换为 https://github.com/sunmi-OS/gocore phalgo不在维护
Stars: ✭ 110 (+511.11%)
Mutual labels:  echo, gorm
Golang Gin Realworld Example App
Exemplary real world application built with Golang + Gin
Stars: ✭ 1,780 (+9788.89%)
Mutual labels:  gorm, realworld
Goweibo
Go Weibo App
Stars: ✭ 243 (+1250%)
Mutual labels:  echo, gorm
golang-echo-realworld-example-app
Exemplary real world backend API built with Golang + Echo
Stars: ✭ 403 (+2138.89%)
Mutual labels:  echo, realworld-backend
go-realworld-example-app
Exemplary real world application built with Go, Gin, and go-pg
Stars: ✭ 48 (+166.67%)
Mutual labels:  realworld, realworld-backend
Logrus
Hooks for logrus logging
Stars: ✭ 110 (+511.11%)
Mutual labels:  echo, gorm
scala-http4s-realworld-example-app
Example of a RealWorld app backend powered by Scala + http4s
Stars: ✭ 35 (+94.44%)
Mutual labels:  realworld, realworld-backend
go-webapp-sample
golang, echo, gorm
Stars: ✭ 194 (+977.78%)
Mutual labels:  echo, gorm
symfony-realworld-example-app
Symfony 5 codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
Stars: ✭ 89 (+394.44%)
Mutual labels:  realworld, realworld-backend
go-echo-server-sandbox
A scaffold of golang web server using labstack/echo
Stars: ✭ 12 (-33.33%)
Mutual labels:  echo, gorm
echo-template
golang template for echo framework!
Stars: ✭ 39 (+116.67%)
Mutual labels:  echo
growl
gorm, redis and local cache layer
Stars: ✭ 19 (+5.56%)
Mutual labels:  gorm
public
util toolkit for go.golang 通用函数包
Stars: ✭ 135 (+650%)
Mutual labels:  gorm
cljs-rum-realworld-example-app
ClojureScript + Rum codebase containing real world examples
Stars: ✭ 52 (+188.89%)
Mutual labels:  realworld
echoswagger
Swagger UI generator for Echo framework
Stars: ✭ 34 (+88.89%)
Mutual labels:  echo
riot realworld example app
Exemplary real world application built with Riot.js v6 🖐👍
Stars: ✭ 16 (-11.11%)
Mutual labels:  realworld
hotwire-django-realworld
RealWorld Django app built with Turbo!
Stars: ✭ 29 (+61.11%)
Mutual labels:  realworld
iris-admin
Web admin for iris-go framwork
Stars: ✭ 602 (+3244.44%)
Mutual labels:  gorm
multi-projects-architecture-with-Ktor
A Ktor real world example built on multi-projects architecture
Stars: ✭ 29 (+61.11%)
Mutual labels:  realworld

RealWorld Example App

workflow

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

Demo    RealWorld

This codebase was created to demonstrate a fully fledged fullstack application built with [YOUR_FRAMEWORK] including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the [YOUR_FRAMEWORK] community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

How it works

Simple Architecture

Note: cache layer is not implemented yet.

API Server technology stack is

Getting started

Using docker-compose

// build app-server and start mysql, app-server. 
$ make compose.up
./scripts/compose.sh up
Creating network "echo-gorm-realworld-app_default" with the default driver
Creating db ... done
Creating app-server ... done
...

$ docker ps -a
CONTAINER ID   IMAGE                                COMMAND                  CREATED          STATUS          PORTS                                                    NAMES
01c48db0a1ff   zacscoding/echo-gorm-realworld-app   "app-server --config…"   18 minutes ago   Up 17 minutes   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp                app-server
79db7c93b358   mysql:8.0.17                         "docker-entrypoint.s…"   18 minutes ago   Up 18 minutes   33060/tcp, 0.0.0.0:43306->3306/tcp, :::43306->3306/tcp   db

This server will serve on localhost:8080. Schema also migrated from golang-migrate/migrate and migrations.

More commands

Tests and checks lint, build

// This command includes clean tests cache, unit test, datarace, build, lint.
$ make tests

// also can be run each.

// run unit test
$ make test

// run datarace
$ make test.datarace

// check build
$ make test.build

// check lint
$ make lint

Integration tests

After run servers(e.g: make compose.up), u can run integration tests.

$ make it.postman

+++ dirname integration/postman/run-api-tests.sh
++ cd integration/postman

...

┌─────────────────────────┬───────────────────┬──────────────────┐
│                         │          executed │           failed │
├─────────────────────────┼───────────────────┼──────────────────┤
│              iterations │                 1 │                0 │
├─────────────────────────┼───────────────────┼──────────────────┤
│                requests │                32 │                0 │
├─────────────────────────┼───────────────────┼──────────────────┤
│            test-scripts │                48 │                0 │
├─────────────────────────┼───────────────────┼──────────────────┤
│      prerequest-scripts │                18 │                0 │
├─────────────────────────┼───────────────────┼──────────────────┤
│              assertions │               263 │                0 │
├─────────────────────────┴───────────────────┴──────────────────┤
│ total run duration: 17.8s                                      │
├────────────────────────────────────────────────────────────────┤
│ total data received: 5.46KB (approx)                           │
├────────────────────────────────────────────────────────────────┤
│ average response time: 27ms [min: 7ms, max: 120ms, s.d.: 30ms] │
└────────────────────────────────────────────────────────────────┘

TODO

  • implement cache(go-redis/redis)
  • unit tests of article handler
  • integration tests with golang and gavv/httpexpect
  • monitoring(prometheus + grafana)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].