- Node.js (v18 or higher)
- PHP (v8.1 or higher)
- Composer
- MySQL (v8.0 or higher)
- Docker and Docker Compose (optional, for Docker setup)
-
Clone the repository
-
Navigate to the project directory
-
Run the following command:
docker-compose up --build -d
-
Access the application:
- Web interface: http://localhost:3000
- Server API: http://localhost:8000
- phpMyAdmin: http://localhost:8080
- Username: root
- Password: root
-
Clone the repository
-
Backend Setup:
cd server npm install cp .env.example .env # Update .env with your database credential npm run dev
-
Frontend Setup:
cd client npm install npm start -
Database Setup:
- Create a new MySQL database
- Import the initial SQL file(db folder, datebase there is mdclone so keep an eye on it)
- Default user credentials:
- Username: admin@mdclone.com
- Password: 123456
- Backend runs on: http://localhost:8000
- Frontend runs on: http://localhost:3000
- API documentation available at: http://localhost:8000/api/documentation
- User authentication
- Role-based access control
- Time tracking
- Manager dashboard
- Employee management
-
Docker issues:
# Stop all containers docker-compose down -v # Rebuild and start docker-compose up --build -d
-
Database connection issues:
- Check your .env file credentials
- Ensure MySQL service is running
- Verify database exists and is accessible
-
Frontend issues:
cd client npm install npm start