rapid-go

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

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Rapid Go

This is a demo project doing simple things with Tilt in Go to achieve rapid development in containers.

Prerequisites

Getting Started

  1. Clone the repository
  2. Run git checkout step1 to get to the first step
  3. Run tilt up in the root of the repository
  4. Open your browser to http://localhost:10350 to see the TILT UI
  5. Curl to http://localhost:32400 to hit the api (available routes are / and /ready)

How to Use

Try making changes to the codebase and see tilt rebuild the container and update the running container. Some steps have already been outlined in the repository, but feel free to experiment with the codebase. To see a diff between steps run git diff step1 step2 or git diff step2 step3 etc.

Steps

Step 1

Creates the basic structure for us to use. A simple Go API, dockerfile, and tiltfile.

Step 2

Adds caching to the dockerfile (particularly in the go build step)

Step 3

Expands the project to use go 1.22's new routing to provide a better structure going forwards.

Step 4

Moves the / endpoint to /greet/{name} and greets the user with a message.

Step end

A kitchen sink example, so to speak. We use a database, a migrations file, and so much more.

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL