Go kickstart is a simple repository that I'm managing to a have a fast setup for Go web application

Overview

Go Kickstart

Go kickstart is a simple repository that I'm managing to a have a fast setup for Go web application with my most common use cases using practices that I found useful and easy to maintain.

How to run

clone repository and use go run .

Server

server.go contains all the dependencies that are normally available on most frameworks like routing, properties, http mangement, security, etc.

Routes

routes.go contains all the mapping between http's routes and controllers in a rails, while method mapping has been implemented in a Spring Boot style with GetMapping, PostMapping, PutMapping with a RequestMapping parent.

s.GetMapping("/", s.HandleIndex())

Controllers

controllers.go will be the bridge between routing and business logic and middleware

Static assets

static assets will be exposed on /static route, this is a good place for stylesheets, javascripts, images and so on.

Application properties

Like most application, having configurations and constants in a file make them easier to manage, this is a de-facto standard in Spring-Boot with application.yaml, so a ServerConfig struct will contain the values of properties.yaml

Todo next

Template engine Integrate common security methods ( basic auth, session based and JWT )

References

You might also like...
Forms is a fast, powerful, flexible, sortable web form rendering library written in golang.

forms Description forms makes form creation and handling easy. It allows the creation of form without having to write HTML code or bother to make the

sigurlx a web application attack surface mapping tool.

sigurlx a web application attack surface mapping tool, it does ...:

 GoTTY - Share your terminal as a web application
GoTTY - Share your terminal as a web application

GoTTY - Share your terminal as a web application GoTTY is a simple command line tool that turns your CLI tools into web applications. Installation Fro

A web application attack surface mapping tool. It takes in a list of urls then performs numerous probes

sigurlscann3r A web application attack surface mapping tool. It takes in a list of urls then performs numerous probes Resources Features Installation

A web application example to work with a customer object

Wallester Task This repository contains a web application example to work with a customer object. Build in GO version 1.17.1 Live running app example

🖖🏻 A self-hosted Quora like web application written in Go
🖖🏻 A self-hosted Quora like web application written in Go

Guora 🖖🏻 A self-hosted Quora like web application written in Go 基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能 Quick Start (Docker Deploy) $ docker-comp

Using golang framework (Gin) to create a web-application

News feeder Using golang framework (Gin) to create a web-application. This simpl

Ecommerce-api - Rest api of e-commerce web application
Ecommerce-api - Rest api of e-commerce web application

E-commerce Rest API Swagger documentation to test api Domain diagram

GoVWA - A web application developed to help the pentester and programmers to learn the vulnerabilities

GoVWA - A web application developed to help the pentester and programmers to learn the vulnerabilities

Owner
Sanjeya C
Software Engineer, Fullstack Web Developer
Sanjeya C
IIS Server and Access Logging Setup

IIS Server and Access Logging Setup IIS Server Setup Open Server Manager from Start menu. Select "Add roles and features" on Server Manager Dashboard.

null 0 Nov 30, 2021
Android env setup 1337

android_env_setup_1337 add this lines to .zshenv (if not exist create it) # custom paths export DEV_TOOLS=/Users/$(whoami)/goinfre/devtools export APP

null 7 Dec 21, 2022
A little bit of magic for keeping track of the things you have to do.

Be productive. To-do lists are supposed to help you get things done. And I suppose looking through all the stuff you still have to do each time you wa

Adam Lloyd 20 Jun 1, 2022
A simple database application that I was asked to implement as part of a job application process

This is a simple database application that I was asked to implement as part of a job application process. They told me I could choose any languages an

null 0 Nov 24, 2021
A simple web application written in Golang which listens on port 8080

GoWebApp It's a simple web application written in Golang which listens on port 8080 Building It can be build using the command go build -o metricsweba

Viral Kamdar 0 Oct 21, 2021
Go-service-gin - Simple Web api application developed in Golang and Gin

Simple Web api application developed in Golang and Gin Initial Tutorial URL http

Nurul Huda Robin 0 Jan 4, 2022
An inventory service for managing farming vehicles, equipment, and resources

Inventory ?? An inventory service for managing farming vehicles, equipment, and resources. What is this? A REST API for managing farm inventory via HT

Britton Hayes 3 Apr 29, 2022
An open-source project for managing OpenStack resources and OpenStack infrastructure in a Kubernetes cluster

kupenStack Kubernetes-Native OpenStack A Sandbox Project. Have you used OpenStack before? If so, then for you KupenStack is magic ✨ that lets you use

Jatin Parmar 0 Nov 11, 2021
Go-web-scaffold - A simple scaffold for building web app quickly

Go-web-scaffold A simple scaffold for building web app quickly. features This sc

Statrue 3 Jan 21, 2022
This application is used as an example HTTP/SQLite application for Litestream tutorials.

This application is used as an example HTTP/SQLite application for Litestream tutorials. It simply maintains a count of HTTP requests and persists it to a SQLite database.

Ben Johnson 12 Apr 2, 2022