Created initial project files

This commit is contained in:
2026-01-11 15:39:45 +00:00
parent ef58aad019
commit 104c7b773f
5 changed files with 37 additions and 0 deletions

2
.env.example Normal file
View File

@@ -0,0 +1,2 @@
# Project Configuration
APP_NAME="${REPO_NAME}"

3
.gitea/template Normal file
View File

@@ -0,0 +1,3 @@
src/.env
src/main.py
README.md

17
launch.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Copy .env if it doesn't exist
if [ ! -f .env ]; then
cp .env.example src/.env
echo ".env file created from template."
fi
# Setup Virtual Environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run the app
python src/main.py

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
python_dotenv

14
src/main.py Normal file
View File

@@ -0,0 +1,14 @@
import os
from pathlib import Path
def main():
app_name = os.getenv("APP_NAME", "DefaultApp")
print(f"Launching {app_name}...")
# Example of creating a subfolder for misc files
config_dir = Path("storage/configs")
config_dir.mkdir(parents=True, exist_ok=True)
print(f"Storage directory ready at: {config_dir.absolute()}")
if __name__ == "__main__":
main()