Categorygithub.com/amineadminterraform/go-app
modulepackage
0.0.0-20240927210125-6e1cfaa9fd4f
Repository: https://github.com/amineadminterraform/go-app.git
Documentation: pkg.go.dev

# README

Platform Iac controller

Table of Contents

Installation

  1. Clone the repo:

    git clone https://github.com/amineadminterraform/go-app
    
  2. Run docker compose up inside the go-app. the app is exposed in localhost:8000 You can check the apis at localhost:8000/docs/index.html

  3. To Deploy on local machine (Assuming you already have go) you need to install go-migrate :

    curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.1/migrate.linux-amd64.tar.gz | tar xvz
    
  4. Start Postgresql Service You can modify the app.env and change the env variables accordingly:

    docker run --name postgres -p5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret -d postgres:12-alpine
    
  5. Create the db

    make createdb
    
  6. Bootstrap the db

    make migrateup
    
  7. Start the api

    make server
    

Usage

This is api is used as a backend in a poc to create multiple environment layers from multiple iac inside the same environments and to add another level of automation in infrastructure deployement

# Packages

No description provided by the author
No description provided by the author
Package docs Code generated by swaggo/swag.
No description provided by the author