This is simple Teonet web-server microservice application which get fortune message from Teonet Fortune microservice and show it in the site web page.
To create your own web-site you need to have host with IP address, domain and possibility to create record in this domain. We have created the fortune.teonet.dev web-site and run it in Teonet Cloud.
There are various ways to start this Teonet microservice application:
In code blow we use preinstalled in Teonet Cloud teofortune microservice address: '-fortune=8agv3IrXQk7INHy5rVlbCxMWVmOOCoQgZBF'.
Change this address to your application address. Or you can use this address, but than you will connect to teofortune
microservice application running in Teonet Cloud. The address prints after you start Teonet application in string:
Teonet address: 8agv3IrXQk7INHy5rVlbCxMWVmOOCoQgZBF
git clone https://github.com/teonet-go/teofortune-web
cd teofortune-web
go run . -fortune=8agv3IrXQk7INHy5rVlbCxMWVmOOCoQgZBF -loglevel=debug
go install github.com/teonet-go/teofortune-web .
teofortune -fortune=8agv3IrXQk7INHy5rVlbCxMWVmOOCoQgZBF -loglevel=debug
docker run -d -it --network=host --restart=always --name teofortune-web -v \
$HOME/.config/teonet/teofortune-web:/root/.config/teonet/teofortune-web ghcr.io/teonet-go/\
teofortune-web:latest teofortune-web \
-fortune=8agv3IrXQk7INHy5rVlbCxMWVmOOCoQgZBF -loglevel=debug
By default the teofortune-web site start at localhost:8088. If you run your web site in host with real IP you can add parameter -domain=my.feature.example
to start real internet web server. Where the my.feature.example
is your domain and you can create records in this domain.
There is preinstalled teofortune-web web-site with name fortune.teonet.dev