nova

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 23 Imported by: 0

README

Nova Logo

Nova

Build Powerful Web Applications in Go, Faster.

Build Status Go Report Card GoDoc Release License Documentation GitHub Stars


Nova is a Go framework designed to help you build robust and scalable web applications with ease. It leverages the power of Go's standard library while providing convenient tools and abstractions to accelerate your development workflow.

Nova consists of two main components:

  • The Nova Binary: A command-line tool (installed via go install) that handles project generation, scaffolding, and database migrations. It's perfect for setting up new projects quickly and managing some boilerplate.
  • The Nova Library: The library that provides the functionality for building web applications, including REST APIs, middleware, and more. Your generated projects with the binary import this library.

Features

  • CLI Tooling: Integrated command-line tooling to build any CLI for your application.
  • Project Scaffolding: Quickly generate new projects with a sensible default structure using nova new.
  • Database Migrations: Manage database migrations effortlessly with the nova binary.
  • Streamlined REST APIs: Simplified routing, request handling, and response generation.
  • Validation & OpenAPI: Built-in support for request validation and OpenAPI (Swagger) spec generation.
  • Middleware Support: Easily add and manage middleware for enhanced functionality.
  • Templating Engine: Built-in support for building HTML templates within Go files.

Getting Started

Prerequisites

  • Go 1.24 or later

Installation

Install the Nova binary globally to get started with a Nova project quickly:

go install github.com/xlc-dev/nova@latest

Quick Start

  1. Create a new Nova project: Follow the interactive prompts to set up your application.

    nova new myproject
    
  2. Navigate to your project directory:

    cd myproject
    
  3. Build and run your application: The generated project includes the Nova library, so building it will handle the web application logic.

    # Build the binary
    go build -o novarun
    
    # Run the application
    ./novarun
    

    Your application should now be running on http://localhost:8080. From here, you can explore the library's features like REST APIs and middleware.

Common Go Commands

Here are some common Go commands you might use for development:

  • Build the application:

    go build -o novarun
    

    This command compiles your Go application and creates an executable named novarun in the current directory.

  • Run the application:

    ./novarun
    

    Executes the built application.

  • Format Go source code:

    goimports -w .
    go fmt ./...
    

    These commands format your Go code according to Go's standard style. goimports also adds/removes necessary imports.

  • Run tests:

    go test ./... -v
    

    This command runs all tests in your project and its subdirectories, with verbose output.

Documentation

Documentation is available to guide you through Nova's features and usage. The docs are created and built using ffsg. A fast static site generator written by yours truely.

Read the full documentation here

Contributing

Contributions are welcome! Whether it's bug reports, feature requests, documentation improvements, or code contributions, please feel free to open an issue or submit a pull request.

Please read the CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Documentation

Overview

Package main implements a Fullstack HTTP Web Framework called Nova.

See https://xlc-dev.github.io/nova for more information about Nova.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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