- Enhanced globals.css with comprehensive animation system - Added advanced map marker animations (GPS, parking) - Improved button and filter animations with hover effects - Added new UI components: BookingModal, ParkingDetails, WheelPicker - Reorganized project structure with better documentation - Added optimization scripts and improved development workflow - Updated deployment guides and technical documentation - Enhanced mobile responsiveness and accessibility support
190 lines
4.5 KiB
Markdown
190 lines
4.5 KiB
Markdown
# 🚀 Git Upload Guide for Smart Parking Finder
|
|
|
|
## 📋 Instructions to Upload to Gitea Repository
|
|
|
|
### 1. Navigate to Project Directory
|
|
```bash
|
|
cd /Users/phongworking/Desktop/Working/Laca_city/Website_Demo_App
|
|
```
|
|
|
|
### 2. Initialize Git Repository (if not already done)
|
|
```bash
|
|
# Check if Git is already initialized
|
|
git status
|
|
|
|
# If not initialized, run:
|
|
git init
|
|
```
|
|
|
|
### 3. Configure Git User (if not set globally)
|
|
```bash
|
|
git config user.name "Phong Pham"
|
|
git config user.email "your-email@example.com"
|
|
```
|
|
|
|
### 4. Add All Files to Git
|
|
```bash
|
|
# Add all files to staging
|
|
git add .
|
|
|
|
# Check what will be committed
|
|
git status
|
|
```
|
|
|
|
### 5. Create Initial Commit
|
|
```bash
|
|
git commit -m "🚀 Initial commit: Smart Parking Finder
|
|
|
|
✨ Features:
|
|
- Next.js 14 frontend with React 18 & TypeScript
|
|
- NestJS backend with PostgreSQL & Redis
|
|
- Interactive OpenStreetMap with React Leaflet
|
|
- Real-time parking search and reservations
|
|
- Docker development environment
|
|
- Comprehensive documentation
|
|
|
|
📁 Project Structure:
|
|
- /frontend - Next.js application
|
|
- /backend - NestJS API server
|
|
- /scripts - Deployment and development scripts
|
|
- /Documents - Complete documentation
|
|
- /valhalla - Routing engine configuration
|
|
|
|
🛠️ Quick Start:
|
|
- ./launch.sh - Interactive launcher
|
|
- ./scripts/setup.sh - Initial setup
|
|
- ./scripts/frontend-only.sh - Quick demo
|
|
- ./scripts/full-dev.sh - Full development
|
|
- ./scripts/docker-dev.sh - Docker environment
|
|
|
|
📚 Documentation:
|
|
- Complete system architecture
|
|
- API schemas and database design
|
|
- Deployment guides and troubleshooting
|
|
- Performance optimization reports"
|
|
```
|
|
|
|
### 6. Add Remote Repository
|
|
```bash
|
|
# Add your Gitea repository as remote origin
|
|
git remote add origin https://gitea.phongprojects.id.vn/phongpham/Laca-City.git
|
|
|
|
# Verify remote is added
|
|
git remote -v
|
|
```
|
|
|
|
### 7. Set Main Branch and Push
|
|
```bash
|
|
# Set main branch
|
|
git branch -M main
|
|
|
|
# Push to remote repository
|
|
git push -u origin main
|
|
```
|
|
|
|
### 8. Verify Upload
|
|
```bash
|
|
# Check if push was successful
|
|
git status
|
|
|
|
# View commit history
|
|
git log --oneline -5
|
|
|
|
# Check remote tracking
|
|
git branch -vv
|
|
```
|
|
|
|
## 🔧 Troubleshooting
|
|
|
|
### If Authentication is Required:
|
|
```bash
|
|
# Option 1: Use personal access token
|
|
git remote set-url origin https://your-username:your-token@gitea.phongprojects.id.vn/phongpham/Laca-City.git
|
|
|
|
# Option 2: Use SSH (if SSH key is configured)
|
|
git remote set-url origin git@gitea.phongprojects.id.vn:phongpham/Laca-City.git
|
|
```
|
|
|
|
### If Repository Already Exists:
|
|
```bash
|
|
# Force push (use with caution)
|
|
git push -u origin main --force
|
|
|
|
# Or pull first then push
|
|
git pull origin main --allow-unrelated-histories
|
|
git push -u origin main
|
|
```
|
|
|
|
### If Large Files Need to be Excluded:
|
|
The `.gitignore` file has been created to exclude:
|
|
- `node_modules/`
|
|
- `.next/`
|
|
- `dist/`
|
|
- `.env` files
|
|
- Database files
|
|
- Log files
|
|
- Cache files
|
|
|
|
## 📊 Repository Structure After Upload
|
|
|
|
Your Gitea repository will contain:
|
|
```
|
|
Laca-City/
|
|
├── 📁 Documents/ # Complete documentation
|
|
├── 📁 scripts/ # Deployment scripts
|
|
├── 📁 frontend/ # Next.js application
|
|
├── 📁 backend/ # NestJS API
|
|
├── 📁 valhalla/ # Routing engine
|
|
├── 📁 assets/ # Static assets
|
|
├── 🚀 launch.sh # Quick launcher
|
|
├── 🐳 docker-compose.yml # Docker configuration
|
|
├── 📋 .gitignore # Git ignore rules
|
|
└── 🧹 REORGANIZATION_GUIDE.md
|
|
```
|
|
|
|
## 🎯 Next Steps After Upload
|
|
|
|
1. **Clone on other machines:**
|
|
```bash
|
|
git clone https://gitea.phongprojects.id.vn/phongpham/Laca-City.git
|
|
cd Laca-City
|
|
./scripts/setup.sh
|
|
```
|
|
|
|
2. **Development workflow:**
|
|
```bash
|
|
# Make changes
|
|
git add .
|
|
git commit -m "Description of changes"
|
|
git push
|
|
```
|
|
|
|
3. **Branching strategy:**
|
|
```bash
|
|
# Create feature branch
|
|
git checkout -b feature/new-feature
|
|
|
|
# After development
|
|
git push -u origin feature/new-feature
|
|
# Create pull request in Gitea
|
|
```
|
|
|
|
## 🔒 Security Notes
|
|
|
|
- ✅ `.gitignore` excludes sensitive files (`.env`, `node_modules`)
|
|
- ✅ No database credentials in repository
|
|
- ✅ No API keys or secrets committed
|
|
- ⚠️ Remember to set environment variables in production
|
|
|
|
## 📞 Support
|
|
|
|
If you encounter issues:
|
|
1. Check network connectivity to gitea.phongprojects.id.vn
|
|
2. Verify repository permissions in Gitea web interface
|
|
3. Ensure Git credentials are correct
|
|
4. Check if repository size limits are exceeded
|
|
|
|
---
|
|
|
|
*Run these commands in your terminal to upload the complete Smart Parking Finder project to your Gitea repository.*
|