snowflake

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 1 Imported by: 0

README

Snowflake

Yet another Go REST API application generator.

Features:

  • Opinionated with the best practices.
  • Simplicity with batteries.
  • Idiomatic. Every Gopher loves that word.

Installation

go install github.com/gitkumi/snowflake@latest

Quick Start

Here is how to generate an application with sqlite3 as database.

snowflake new -d sqlite3 acme

Flags

  • database (-d)
    • sqlite3
    • postgres
    • mysql

Stack

Snowflake is built with these packages. Make sure to check their documentation.

Dev
Routing
Database

Make Commands

  • make dev - Start the development environment with hot reload.
  • make test - Run tests.
  • make build - Build the project.
  • make run - Run the build.
  • make db - Check database status.
  • make db.up - Run database migration.
  • make db.down - Roll back database migration by 1.
  • make db.create - Create database.
  • make db.destroy - Destroy database.
  • make db.reset - Destroy and create database.
  • make create <table_name> - Create an empty migration file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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