internet-chowkidar

command module
v0.0.0-...-fa2c683 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 15 Imported by: 0

README

Internet Chowkidar

This repository contains the code for internet chowkidar, a web application that allows users to monitor any blocks, bans, or restrictions on the internet by their ISP. The application is built using Go and PostgreSQL.

Features

  • Logging: Structured logging with slog
  • Configuration: Configuration management with koanf
  • HTTP Server: HTTP server with net/http
  • Database: DB ORM with ent
  • Task Runner: Task runner with just

Requirements

Quickstart

  1. Clone the repository
  2. Install the dependencies
go mod tidy
  1. Set up local environment variables using the .env.example file.
cp .env.example .env
  1. Run codegen
just # yes, that's it, nothing else
  1. Run the application
just run

Codegen

Necessary for generating APIs, DB schemas, dependency injection, etc. A detailed explanation of the codegen process can be found here.

Devcontainers

This repository contains a devcontainer configuration for Visual Studio Code. The devcontainer is pre-configured with all the necessary tools and extensions to start developing right away. A detailed explanation of the devcontainer can be found here.

Migrations

Refer to the migrations documentation for more information on how to create and apply migrations.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
Code generated by tools/update-providers.go; DO NOT EDIT.
Code generated by tools/update-providers.go; DO NOT EDIT.
gen
handler
Code generated by tools/update-providers.go; DO NOT EDIT.
Code generated by tools/update-providers.go; DO NOT EDIT.
cmd
ent
internal
db
pkg
di
domain/provider
Code generated by tools/update-providers.go; DO NOT EDIT.
Code generated by tools/update-providers.go; DO NOT EDIT.
domain/repository
Code generated by tools/update-providers.go; DO NOT EDIT.
Code generated by tools/update-providers.go; DO NOT EDIT.
domain/service
Code generated by tools/update-providers.go; DO NOT EDIT.
Code generated by tools/update-providers.go; DO NOT EDIT.
domain/service/mock
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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