Skip to content

Commit 33e9ef4

Browse files
authored
Merge pull request #1 from UNC-GDSC/claude/reorganize-enhance-repo-011CV6HvSjMK25M9Fviu48Am
Enhance repo organization and structure
2 parents 9df6420 + 9cce4bc commit 33e9ef4

54 files changed

Lines changed: 6460 additions & 287 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.git
2+
.idea
3+
.vscode
4+
.env
5+
logs/
6+
*.log
7+
vendor/
8+
node_modules/
9+
.DS_Store
10+
Thumbs.db

.env.example

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Application Configuration
2+
APP_NAME="Blog CMS System"
3+
APP_ENV=development
4+
APP_DEBUG=true
5+
APP_URL=http://localhost:8000
6+
7+
# Database Configuration
8+
DB_HOST=localhost
9+
DB_PORT=3306
10+
DB_NAME=blog_cms
11+
DB_USER=root
12+
DB_PASS=
13+
14+
# Session Configuration
15+
SESSION_LIFETIME=7200
16+
SESSION_NAME=blog_cms_session
17+
18+
# Security
19+
SECRET_KEY=your-secret-key-here-change-in-production
20+
CSRF_TOKEN_EXPIRY=3600
21+
22+
# Timezone
23+
APP_TIMEZONE=UTC
24+
25+
# Logging
26+
LOG_LEVEL=debug
27+
LOG_PATH=logs/app.log
28+
29+
# Pagination
30+
POSTS_PER_PAGE=10
31+
32+
# Cache
33+
CACHE_ENABLED=true
34+
CACHE_TTL=3600
35+
36+
# Email Configuration
37+
MAIL_FROM_ADDRESS=noreply@example.com
38+
MAIL_FROM_NAME="Blog CMS"
39+
40+
# File Uploads
41+
UPLOAD_MAX_SIZE=5242880
42+
UPLOAD_DIR=public/uploads
43+
44+
# API
45+
API_RATE_LIMIT=60
46+
API_RATE_LIMIT_WINDOW=60

.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Environment Configuration
2+
.env
3+
.env.local
4+
.env.*.local
5+
6+
# IDE and Editor Files
7+
.idea/
8+
.vscode/
9+
*.swp
10+
*.swo
11+
*~
12+
.DS_Store
13+
14+
# Logs
15+
logs/
16+
*.log
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
20+
21+
# Dependency Directories
22+
vendor/
23+
node_modules/
24+
25+
# Composer
26+
composer.phar
27+
composer.lock
28+
29+
# Build Files
30+
/build/
31+
/dist/
32+
33+
# Cache
34+
cache/
35+
*.cache
36+
37+
# Temporary Files
38+
tmp/
39+
temp/
40+
*.tmp
41+
42+
# OS Generated Files
43+
Thumbs.db
44+
.DS_Store
45+
.Spotlight-V100
46+
.Trashes
47+
48+
# PHPUnit
49+
.phpunit.result.cache
50+
/phpunit.xml
51+
52+
# Coverage Reports
53+
/coverage/
54+
clover.xml
55+
56+
# Database
57+
*.sql.gz
58+
*.sqlite
59+
*.db
60+
61+
# Uploaded Files (if you have user uploads)
62+
public/uploads/
63+
storage/
64+
65+
# Session Files
66+
sessions/

Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM php:8.2-apache
2+
3+
# Set working directory
4+
WORKDIR /var/www/html
5+
6+
# Install system dependencies
7+
RUN apt-get update && apt-get install -y \
8+
git \
9+
curl \
10+
libpng-dev \
11+
libonig-dev \
12+
libxml2-dev \
13+
zip \
14+
unzip \
15+
&& apt-get clean \
16+
&& rm -rf /var/lib/apt/lists/*
17+
18+
# Install PHP extensions
19+
RUN docker-php-ext-install pdo_mysql mysqli mbstring exif pcntl bcmath gd
20+
21+
# Enable Apache mod_rewrite
22+
RUN a2enmod rewrite
23+
24+
# Configure Apache Document Root
25+
ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
26+
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
27+
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
28+
29+
# Set permissions
30+
RUN chown -R www-data:www-data /var/www/html \
31+
&& chmod -R 755 /var/www/html
32+
33+
# Copy application files
34+
COPY . /var/www/html
35+
36+
# Create logs directory
37+
RUN mkdir -p /var/www/html/logs && chown -R www-data:www-data /var/www/html/logs
38+
39+
# Expose port 80
40+
EXPOSE 80
41+
42+
# Start Apache
43+
CMD ["apache2-foreground"]

0 commit comments

Comments
 (0)