ready-set-go

command module
v0.0.0-...-0d82576 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 11 Imported by: 0

README

Ready Set Go

A minimal Go starter project for building web APIs

Features

  • simple http/net based router with route groups and middleware support
  • session authentication

Tools

  • goose for db migrations
  • sqlc for generating typesafe Go code from sql queries

Getting started

  • Install goose

  • Copy this repository by clicking the Use This Template button.

  • Start a new postgres DB

  • Create an env variable called DB_CONN which should be follow this format

  • Run the migrate command using goose

    $ goose postgres $DB_CONN --dir db/migrations/ up;
    
  • Run go run .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
Pakage router implements simple http routing using net/http.
Pakage router implements simple http routing using net/http.

Jump to

Keyboard shortcuts

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