Skip to content

nanobox-quickstarts/nanobox-gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gin from scratch

Gin from scratch

Run a Gin app locally, install nothing besides nanobox.

Clone the repo

# clone the code
git clone https://github.com/nanobox-quickstarts/nanobox-gin.git

# cd into the gin app
cd nanobox-gin

Run the app

# Add a convenient way to access your app from the browser
nanobox dns add local gin.dev

# Run Gin as you would normally, with Nanobox
nanobox run go run main.go

Check it out

Visit your app at gin.dev:8080/ping

Explore

With Nanobox, you don't have to have anything installed on your machine to run your app:

# drop into a Nanobox console
nanobox run

# where golang is installed,
go version

# git is installed,
git --version

# and your code is mounted
ls

Now What?

For more details about running Gin apps with nanobox visit guides.nanobox.io/golang/gin/