/go-chi-starter

A starter template using Go, Chi Router & Gorm

Primary LanguageGo

Golang Chi Starter Template

A simple and lightweight starter template for building web applications using the Chi router, GORM, and SQLite. This template provides the basic structure and tools needed to quickly get up and running with Go for building RESTful APIs or web apps.

Features

  • Chi Router: A lightweight, idiomatic, and composable router for building Go HTTP services.
  • GORM ORM: An easy-to-use ORM with support for struct-based queries and migrations.
  • SQLite Database: A self-contained, serverless database engine that is perfect for development and small applications.
  • Basic structure with models, controllers, and routing.
  • Environment configuration using .env.
  • Graceful shutdown for the server.

Getting Started

Prerequisites

To run this project, ensure you have the following installed:

  • Go 1.19 or higher
  • SQLite (optional, if you want to inspect or manage the database)