- Complete web-based STL file storage and 3D viewer - Express.js backend with SQLite database - Interactive Three.js 3D viewer with orbit controls - File upload with drag-and-drop support - Security features: rate limiting, input validation, helmet - Container deployment with Docker/Podman - Production-ready configuration management - Comprehensive logging and monitoring 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
463 B
Bash
Executable File
21 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# STL Storage Application Startup Script
|
|
set -e
|
|
|
|
echo "🚀 Starting STL Storage Application..."
|
|
|
|
# Initialize database if it doesn't exist
|
|
if [ ! -f "stl_storage.db" ]; then
|
|
echo "📦 Initializing database..."
|
|
node init-db.js
|
|
else
|
|
echo "✅ Database already exists"
|
|
fi
|
|
|
|
# Create uploads directory if it doesn't exist
|
|
mkdir -p uploads/stl uploads/thumbnails
|
|
|
|
# Start the application
|
|
echo "🌐 Starting web server..."
|
|
exec node server.js |