Categorygithub.com/gretchelg/Go_BudgetApp
modulepackage
0.0.0-20240804103719-b481c676c31e
Repository: https://github.com/gretchelg/go_budgetapp.git
Documentation: pkg.go.dev

# README

Go Budget App

This is the budget app BE

Prerequisites

  1. Golang (official download, brew)
  2. (optional) golangci-lint (brew, official quickstart)
  3. (optional) goimports (official page)

Usage

  1. Install Dependencies
make install
  1. Run
make run

Endpoints

Try any of the below

Transaction endpoint localhost:3000/api/v1/transaction

  1. list all transactions GET localhost:3000/api/v1/transaction
  2. get one transaction by ID GET localhost:3000/api/v1/transaction/6tsn-Mmmv-fpZS-k2Bv
  3. create transaction POST localhost:3000/api/v1/transaction
  4. update transaction PATCH localhost:3000/api/v1/transaction/6tsn-Mmmv-fpZS-k2Bv

User endpoint localhost:3000/api/v1/user

  1. list all users GET localhost:3000/api/v1/user

Dependencies

  1. Go-Chi is the HTTP server framework used (official website, github)
  2. mongo-go-driver is the official database driver by MongoDB (github)

# Packages

No description provided by the author

# Structs

AppConfig defines the configurations required to run this app.