hs-micro-front

command module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

hs-micro-front

Overview

This is a educational purpose app: a simple bloging like platform.

Architecture

             ---------
             | EMAIL |
             ---------
                 ^
                 |
---------     --------     --------     -----------
| FRONT | --> | NATS | --> | BACK | --> | MariaDB |
---------     --------     --------     -----------
  • Front: a go frontend (gorilla, html/templatesn go-nats)
  • Back: a go backend (go-nats, database/sql)
  • Email: a python notification service

Run

Binary
$ go build -o app
$ export NATSURL="your_nats_url"               // default demo.nats.io
$ export NATSPORT="your_nats_port"             // default :4222
$ export NATSPOST="your_nats_post_channel"     // the channel used for posts, default zjnO12CgNkHD0IsuGd89zA
$ export NATSGET="your_nats_get_posts_channel" // the channel used get posts, default OWM7pKQNbXd7l75l21kOzA
$ ./app
Docker
$ export NATSURL="your_nats_url"               // default demo.nats.io
$ export NATSPORT="your_nats_port"             // default :4222
$ export NATSPOST="your_nats_post_channel"     // the channel used for posts, default zjnO12CgNkHD0IsuGd89zA
$ export NATSGET="your_nats_get_posts_channel" // the channel used get posts, default OWM7pKQNbXd7l75l21kOzA
$ docker run -d -e NATSURL=${NATSURL} -e NATSPORT=${NATSPORT} -e NATSPOST=${NATSPOST} -e NATSGET=${NATSGET} \ 
    -p 8080:8080 jblaskowich/hs-micro-front:$release

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