Website chính thức của TMAi Saigon (Technology Management and AI Institute Saigon) - Viện Quản lý Công nghệ và Trí tuệ Nhân tạo Sài Gòn.
Đây là dự án intern phát triển website tổng thể cho TMAi Saigon, bao gồm:
TMAiSaigon-InternProject/
├── 📁 src/ # Frontend Svelte source code
│ ├── App.svelte # Component chính
│ ├── main.js # Entry point
│ └── components/ # Các component UI
│ ├── Header.svelte # Header với menu và search
│ ├── Footer.svelte # Footer thông tin liên hệ
│ └── Slider.svelte # Image slider component
├── 📁 public/ # Static files & build output
│ ├── index.html # HTML template
│ ├── global.css # Global styles
│ ├── build/ # Build output
│ └── images/ # Hình ảnh website
├── 📁 tmai-admin/ # Symfony Admin Backend
│ ├── src/ # PHP source code
│ ├── templates/ # Twig templates
│ ├── config/ # Configuration files
│ ├── migrations/ # Database migrations
│ └── public/ # Public admin assets
├── package.json # Frontend dependencies
├── rollup.config.js # Rollup configuration
└── README.md # Documentation
git clone <repository-url>
cd TMAiSaigon-InternProject
# Cài đặt dependencies
npm install
# Chạy development server
npm run dev
Website sẽ chạy tại: http://localhost:8080
# Di chuyển vào thư mục admin
cd tmai-admin
# Cài đặt PHP dependencies
composer install
# Tạo database và chạy migrations
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
# Load sample data (optional)
php bin/console doctrine:fixtures:load
# Chạy Symfony development server
symfony serve
Backend admin sẽ chạy tại: http://localhost:8000
# Development với hot reload
npm run dev
# Build cho production
npm run build
# Serve production build
npm start
# Chạy development server
symfony serve
# Tạo migration mới
php bin/console make:migration
# Chạy migrations
php bin/console doctrine:migrations:migrate
# Clear cache
php bin/console cache:clear
Cấu hình chính trong rollup.config.js
:
Các file cấu hình quan trọng:
config/packages/
- Symfony package configurationsconfig/routes.yaml
- API routes definition.env
- Environment variablesBackend cung cấp các API endpoints:
GET /api/partners # Danh sách đối tác
GET /api/products # Sản phẩm đầu tư
GET /api/book-projects # Dự án sách
GET /api/events # Sự kiện quốc tế
GET /api/business-events # Sự kiện kinh doanh
GET /api/website-products # Sản phẩm websites
src/components/
App.svelte
public/global.css
.svelte
Hình ảnh được tổ chức trong public/images/
:
general/
- Background imagesevents/
- Event photos human/
- Team member photosinternal/
- Internal activity photoslogo/
- Brand logos# Build frontend
npm run build
# Optimize backend
cd tmai-admin
composer install --no-dev --optimize-autoloader
php bin/console cache:clear --env=prod
Cấu hình các biến môi trường cần thiết:
# Google Maps API
GOOGLE_MAPS_API_KEY=your_api_key_here
# Database (production)
DATABASE_URL=mysql://user:password@host:port/database
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)This project is proprietary software of TMAi Saigon.
Phát triển bởi TMAi Saigon Intern Team - 2025