Skip to content

angudadevops/golang_webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Web Application

This Web App helps to user compose and send an email with Golang

Prerequisites

  • GO

Web Applications

Mail Application

Run the below command to access the application

git clone https://github.com/angudadevops/golang_webapp.git

go run mail.go

If you don't have go environment, you can use docker to use this application

Run the below command to access the web application

sudo docker run -d --name goweb -p 80:8080 anguda/golang:mail

Access application from your browser with below url

http://hostIP:8080

Web Application with DB

Run the below command to access the application

git clone https://github.com/angudadevops/golang_webapp.git

go run main.go

If you don't have go environment, you can use docker to use this application

Run the below commands to create mysql DB with Golang Web Application

docker run -d -p 3306:3306 --name mysql anguda/mysql
docker run -d -p 8081:8080 --name gowebapp --link mysql anguda/golang:web-app

Access application from your browser with below url

http://hostIP:8081