Categorygithub.com/dennis0126/network-monitor
repository
0.0.0-20240712050416-ffe7f10fe47d
Repository: https://github.com/dennis0126/network-monitor.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Network Monitor

Prerequisites

Switching environments

  1. Assign the desired env file to .env before running the makefile
    cp local.env .env
    
  2. Update any credentials locally in .env
  3. Source and export the env variables
    set -a
    source .env
    set +a
    

Database migrations

Update schema

  1. Update DDL statements in db/schema.sql
  2. Use Atlas to create versioned migration
    atlas migarte diff -c file://db/atlas.hcl --env local <migration_name>
    

Run migrations

atlas migrate apply -c file://db/atlas.hcl --env local