add a template module and boilerplate (#30)

* add a template module and boilerplate

* add CONTRIBUTING.md (#31)

* Update .sample/README.md

Co-authored-by: Ben Potter <me@bpmct.net>

* swap screenshot and code sample

---------

Co-authored-by: Ben Potter <me@bpmct.net>
This commit is contained in:
Muhammad Atif Ali
2023-09-24 08:29:00 +03:00
committed by GitHub
parent abb51a37e1
commit e8bd011e61
6 changed files with 253 additions and 27 deletions

17
.sample/run.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env sh
echo "Instalalting ${MODULE_NAME}..."
# Add code here
# Use varibles from the templatefile function in main.tf
# e.g. LOG_PATH, PORT, etc.
echo "Installation comlete!"
echo "Starting ${MODULE_NAME}..."
# Start the app in here
# 1. Use & to run it in background
# 2. redirct stdout and stderr to log files
./app >${LOG_PATH} 2>&1 &
echo "Sample app started!"