GitHunt

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/

Languages

Go100.0%

Contributors

Mozilla Public License 2.0
Created January 6, 2017
Updated February 11, 2025