A platform for reporting and finding missing children, built with PHP, Node.js, and Docker.
- Docker
- Docker Compose
- Git
- Clone the repository:
git clone https://github.com/yousifhub/mafqood.git
cd mafqood- Create environment file:
cp .env.example .env- Start the containers:
docker-compose up -d- Access the application:
- Frontend: http://localhost:8080
- Backend API: http://localhost:3000
- SSH into your VPS:
ssh user@your-vps-ip- Install Docker and Docker Compose:
# Update system
sudo apt update && sudo apt upgrade -y
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose- Clone the repository:
git clone https://github.com/yousifhub/mafqood.git
cd mafqood- Create and configure environment file:
cp .env.example .env
# Edit .env with your production settings
nano .env- Start the application:
docker-compose up -dCreate a .env file with the following variables:
# Database
DB_HOST=db
DB_USER=root
DB_PASS=your_password
DB_NAME=children_db
# Application
PHP_ROOT_URL=http://localhost:8080
NODE_ROOT_URL=http://localhost:3000
# Docker Configuration
DOCKER_APP_PORT=8080
DOCKER_DB_PORT=3306
DOCKER_NODE_PORT=3000- Start containers:
docker-compose up -d - Stop containers:
docker-compose down - View logs:
docker-compose logs -f - Rebuild containers:
docker-compose up -d --build
mafqood/
├── src/ # Source code
│ ├── app/ # PHP application
│ ├── css/ # Stylesheets
│ ├── js/ # JavaScript files
│ ├── images/ # Image assets
│ └── uploads/ # Uploaded files
├── docker/ # Docker configuration
├── .github/ # GitHub configuration
│ └── workflows/ # GitHub Actions
├── docker-compose.yml # Docker services
└── README.md # Documentation
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.