memo

command module
v0.0.0-...-b47aafa Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

memo

screen_shot.png

This is a sample application for docker-compose.
The "memo" is easy to save your memory wherever you want.
This app is powerd by beego and redis.

localhost on standard golang

If you haven't installed redis-server yet, first you should install redis-server.
The "memo" is connected to localhost:6379 redis-server.

Install libraries.

  • go mod tidy

And build and run it.

  • go fmt ./... && go build && ./memo

You can access with your browser to "http://localhost:8080/".

localhost on Docker (docker-compose)

If you haven't installed docker and docker-compose yet, first you should install them.

  • docker-compose up -d

You can access with your browser to "http://localhost/".

localhost on minikube (kompose)

If you haven't installed minikube yet, first you should install it.

kompose convert -f docker-compose-for-kubernetes.yml
kompose up -f docker-compose-for-kubernetes.yml
kompose down -f docker-compose-for-kubernetes.yml

You can access with your browser by minikube service web.

Heroku Container Registry

heroku container:login
heroku create -a memo-app-12345
(heroku git:remote -a memo-app-12345)
docker build -f Dockerfile -t registry.heroku.com/memo-app-12345/web .
docker push registry.heroku.com/memo-app-12345/web
heroku addons:create heroku-redis:hobby-dev
(heroku config:set REDIS_URL=redis://user:pass@ec2-00-000-000-000.compute-1.amazonaws.com:12345)
heroku container:release web
heroku open -a memo-app-12345

You can acces with your browser to "https://memo-app-12345.herokuapp.com/".

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