u80864958 ca99d8fb87
All checks were successful
Release / publish (push) Successful in 4m11s
actually fix dockerfile
2025-05-05 11:31:37 +02:00
2025-05-05 10:52:53 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:37:09 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:37:09 +02:00
2025-05-05 11:31:37 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:00:50 +02:00
2025-05-05 10:00:50 +02:00

ng-blog Backend

This is the backend service for the ng-blog project. It's written in Go and provides the API endpoints for the frontend application.

Getting Started

Prerequisites

  • Go (version 1.24 or higher)

Running the Backend

The backend provides two main commands: serve and help.

  • serve: Starts the backend server. It loads configuration from environment variables and listens for incoming requests.

    go run ./cmd/main.go serve
    
  • help: Displays usage information about the configuration options.

    go run ./cmd/main.go help
    

Configuration

The backend is configured using environment variables. The help command will display the available configuration options. The configuration is loaded using the go-simpler.org/env library. Environment variable names are expected to be in the format CONFIG_OPTION_NAME.

Directory Structure

  • cmd/main.go: The main entry point for the application. Handles command-line arguments and starts the server.
  • internal/config: Defines the configuration struct and default values.
  • internal/startup: Responsible for initializing the HTTP multiplexer and other startup tasks.
Description
No description provided
Readme 18 MiB
Languages
TypeScript 45.2%
Go 42.1%
HTML 9.7%
CSS 1.9%
Dockerfile 1.1%