Compare commits

...

2 Commits

Author SHA1 Message Date
Frank John Begornia
26620fc043 Update README.md to reflect project details and installation instructions
All checks were successful
Deploy Production (crewsportswear.com) / deploy (push) Successful in 2m1s
2026-01-05 23:15:14 +08:00
Frank John Begornia
f10d6daa6f Update APP_URL and Traefik rules for production environment 2026-01-05 23:13:37 +08:00
2 changed files with 75 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ services:
environment: environment:
- APP_ENV=${APP_ENV:-production} - APP_ENV=${APP_ENV:-production}
- APP_DEBUG=${APP_DEBUG:-false} - APP_DEBUG=${APP_DEBUG:-false}
- APP_URL=${APP_URL:-https://dev-crew.crewsportswear.app} - APP_URL=${APP_URL:-https://crewsportswear.com}
- DB_CONNECTION=mysql - DB_CONNECTION=mysql
- DB_HOST=${DB_HOST} - DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT:-3306} - DB_PORT=${DB_PORT:-3306}
@@ -33,17 +33,17 @@ services:
- ./public/uploads:/var/www/html/public/uploads - ./public/uploads:/var/www/html/public/uploads
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
# Production environment (dev-crew.crewsportswear.app) - Uses Let's Encrypt # Production environment (crewsportswear.com) - Uses paid SSL certificate
- "traefik.http.routers.crewsportswear-prod.rule=Host(`dev-crew.crewsportswear.app`)" - "traefik.http.routers.crewsportswear-prod.rule=Host(`crewsportswear.com`)"
- "traefik.http.routers.crewsportswear-prod.entrypoints=websecure" - "traefik.http.routers.crewsportswear-prod.entrypoints=websecure"
- "traefik.http.routers.crewsportswear-prod.tls=true" - "traefik.http.routers.crewsportswear-prod.tls=true"
- "traefik.http.routers.crewsportswear-prod.tls.certresolver=le"
- "traefik.http.services.crewsportswear-prod.loadbalancer.server.port=80" - "traefik.http.services.crewsportswear-prod.loadbalancer.server.port=80"
# HTTP to HTTPS redirect # HTTP to HTTPS redirect
- "traefik.http.routers.crewsportswear-prod-http.rule=Host(`dev-crew.crewsportswear.app`)" - "traefik.http.routers.crewsportswear-prod-http.rule=Host(`crewsportswear.com`)"
- "traefik.http.routers.crewsportswear-prod-http.entrypoints=web" - "traefik.http.routers.crewsportswear-prod-http.entrypoints=web"
- "traefik.http.routers.crewsportswear-prod-http.middlewares=https-redirect" - "traefik.http.routers.crewsportswear-prod-http.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https" - "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
networks: networks:
- traefik-public - traefik-public
- crew-app-net - crew-app-net

View File

@@ -1,23 +1,79 @@
## Laravel PHP Framework # Crew Sportswear
[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) A custom sportswear and apparel e-commerce platform built with Laravel.
[![Total Downloads](https://poser.pugx.org/laravel/framework/downloads.svg)](https://packagist.org/packages/laravel/framework)
[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework)
[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework)
[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching. ## Production URL
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked. https://crewsportswear.com
## Official Documentation ## Requirements
Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs). - Docker & Docker Compose
- PHP 7.4+
- MySQL 5.7+
- Composer
- Node.js & NPM
## Contributing ## Installation
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). 1. Clone the repository
2. Copy `.env.example` to `.env` and configure your environment variables
3. Install PHP dependencies:
```bash
composer install
```
4. Install Node dependencies:
```bash
npm install
```
5. Generate application key:
```bash
php artisan key:generate
```
6. Run migrations:
```bash
php artisan migrate
```
### License ## Docker Deployment
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT) ### Local Development
```bash
docker-compose -f docker-compose.local.yml up -d
```
### Development Environment
```bash
docker-compose -f docker-compose.dev.yml up -d
```
### Production Environment
```bash
docker-compose -f docker-compose.prod.yml up -d
```
The production environment uses Traefik as a reverse proxy with paid SSL certificate for crewsportswear.com.
## Features
- Custom sportswear design interface
- Product catalog and management
- Order processing and tracking
- User authentication and profiles
- Analytics integration
- Email notifications
- reCAPTCHA integration
## Environment Variables
Key environment variables (see `.env.example` for full list):
- `APP_ENV` - Application environment (local, development, production)
- `APP_URL` - Application URL
- `DB_*` - Database configuration
- `MAIL_*` - Mail server configuration
- `ANALYTICS_*` - Google Analytics configuration
- `CAPTCHA_*` - reCAPTCHA keys
## License
Proprietary - All rights reserved