Tool that:
- Creates presentation using HTML-templates
docker compose up -d --buildThen just run container as bash:
docker compose exec 1sec-present bashAnd execute commands inside container.
- Run this setup script in terminal (use WSL on Windows):
#!/bin/bash
set -euo pipefail
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BASHRC="$HOME/.bashrc"
sudo apt update -y
sudo apt install -y curl wget unzip software-properties-common apt-transport-https ca-certificates gnupg
if ! command -v node &> /dev/null; then
echo "📦 Node.js LTS"
curl -fsSL https://nodesource.com | sudo -E bash -
sudo apt install -y nodejs
else
echo "✅ Node.js: $(node -v)"
fi
CHROME_PATH=""
if command -v chromium-browser &> /dev/null; then
CHROME_PATH=$(which chromium-browser)
elif command -v chromium &> /dev/null; then
CHROME_PATH=$(which chromium)
elif command -v google-chrome &> /dev/null; then
CHROME_PATH=$(which google-chrome)
fi
if [ -z "$CHROME_PATH" ]; then
echo "📦 Chromium..."
sudo apt install -y chromium-browser sudo apt install -y chromium
CHROME_PATH=$(which chromium-browser which chromium)
fi
echo "✅ Chrome/Chromium: $CHROME_PATH"
echo "📦 puppeteer-core..."
if ! npm list -g puppeteer-core &> /dev/null; then
sudo npm install -g puppeteer-core --unsafe-perm=true
else
echo "✅ puppeteer-core"
fi
echo "📝 $BASHRC..."
START_MARKER="# === 1sec-present CONFIG START ==="
END_MARKER="# === 1sec-present CONFIG END ==="
if grep -q "$START_MARKER" "$BASHRC"; then
sed -i "/$START_MARKER/,/$END_MARKER/d" "$BASHRC"
fi
cat << EOF >> "$BASHRC"
$START_MARKER
export PUPPETEER_EXECUTABLE_PATH="$CHROME_PATH"
export ONESEC_PRESENT_DIR="$PROJECT_DIR"
export PATH="\$PATH:\$ONESEC_PRESENT_DIR"
$END_MARKER
EOF
export PUPPETEER_EXECUTABLE_PATH="$CHROME_PATH"
export ONESEC_PRESENT_DIR="$PROJECT_DIR"
export PATH="$PATH:$ONESEC_PRESENT_DIR"
echo ""
echo "🎉🎉🎉"
echo "----------------------------------------"
echo " 🟢 Node.js: $(node -v)"
echo " 🟢 npm: $(npm -v)"
echo " 🟢 Chrome: $PUPPETEER_EXECUTABLE_PATH"
echo " 🟢 project: $ONESEC_PRESENT_DIR"
echo "----------------------------------------"
echo "🚀 Ready"repomixBash mode. <Describe presentation as much as possible>