todo

package module
v0.0.0-...-106e810 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 2 Imported by: 0

README

discontinued please look at https://furo.pro/docs/guides/ebook-tutorial/

todo server

user: demo password: 1234

To start the server just type go run cmd/server/main.go and visit http://localhost:10000.

This is the server for the example app. This repo is made for educational purposes only. It is not our idea to show how to build a server. Our intention is showing the interoperability of all parts.

The build scripts are calling some other repositorys directly ( ../todo-client, ../todo-specs). We omitted the usage of a build pipeline for simplicity.

Therfore you have to check them out to the same directory like you checked out the server project (not inside the server project).

todo app
  ├── todo-server
  ├── todo-specs
  └── todo-client  
What you should see


The API

The api serves the specified services from the todo-spec project.

You cann access the api on :10000 with /api as prefix or on :7001 without a prefix.

Overview

This server exposes

  • the grpc API for the grpc-gateway :7000
  • the grpc gateway (aka transcoder) :7001
  • the webserver to serve the client :10000

Usually this would be done on a server for each service, but for simplicity the transcoder and the client is built in.


    :10000                  :8080
   +------------------+     +---------------+
   |                  |     |               |
   |   todo-client    |     |  todo-client  |  <------+  
   |   (webserver)    |     |  (es-dev)     |         |
   +------------------+     +---------------+         |
                |           /                 +----------------+
    :7001       v          v                  |   todo-specs   |
   +-------------------------+                +----------------+
   |                         |                        |
   |       grpc gateway      |  <---------------------+
   |                         |                        |
   +-------------------------+                        |
                |                                     |
    :7000       v                                     |
   +-------------------------+                        |
   |                         |                        |
   |       todo-server       |  <---------------------+
   |     ----------------    |
   +-------------------------+



The client on :8080 can be started from the client project.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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