# README
Platform Iac controller
Table of Contents
Installation
-
Clone the repo:
git clone https://github.com/amineadminterraform/go-app
-
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
-
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
-
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
-
Create the db
make createdb
-
Bootstrap the db
make migrateup
-
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