added docker compose
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
# Module 3 - TFU
|
||||
|
||||
A PHP-based web application for managing team campaigns and followups.
|
||||
@@ -8,10 +6,27 @@ A PHP-based web application for managing team campaigns and followups.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- PHP 7.4 or higher
|
||||
- MySQL/MariaDB
|
||||
- Docker and Docker Compose
|
||||
- OR PHP 7.4 or higher with MySQL/MariaDB
|
||||
|
||||
### Installation
|
||||
### Docker Installation (Recommended)
|
||||
|
||||
1. Clone this repository to your local machine
|
||||
2. Run the following command in the project root:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
3. The services will be available at:
|
||||
- Application: http://localhost:9000
|
||||
- PHPMyAdmin: http://localhost:8889 (credentials: root/root)
|
||||
4. Import the database schema:
|
||||
- Access PHPMyAdmin at http://localhost:8889
|
||||
- Login with username: root, password: root
|
||||
- Create a new database named 'tfu_db'
|
||||
- Import the `db.sql` file
|
||||
- import the `migration.sql` file
|
||||
|
||||
### Traditional Installation
|
||||
|
||||
1. Clone this repository to your local machine
|
||||
2. Configure your database connection in `config.php`
|
||||
@@ -19,45 +34,42 @@ A PHP-based web application for managing team campaigns and followups.
|
||||
|
||||
### Running the Application
|
||||
|
||||
#### Using Docker (Recommended)
|
||||
The application will be automatically running at http://localhost:9000
|
||||
|
||||
#### Using PHP Built-in Server
|
||||
Start the development server using:
|
||||
|
||||
```bash
|
||||
|
||||
php -S localhost:9000
|
||||
|
||||
```
|
||||
|
||||
|
||||
Then visit `http://localhost:9000` in your web browser.
|
||||
|
||||
Admin Login `http://localhost:9000/admin/login`
|
||||
### Login Credentials
|
||||
|
||||
admin@manaknight.com
|
||||
a123456
|
||||
Admin Login `http://localhost:9000/admin/login`
|
||||
- Email: admin@manaknight.com
|
||||
- Password: a123456
|
||||
|
||||
Client Login `http://localhost:9000/client/login`
|
||||
|
||||
emmy@manaknight.com
|
||||
a123456
|
||||
- Email: emmy@manaknight.com
|
||||
- Password: a123456
|
||||
|
||||
## Features
|
||||
|
||||
- Campaign management
|
||||
- Team followup tracking
|
||||
- Followup tracking
|
||||
- Add and edit campaign details
|
||||
- Database-driven application
|
||||
|
||||
## Core Project Files
|
||||
|
||||
├── README.md
|
||||
|
||||
├── config.php # Database configuration
|
||||
|
||||
├── db.sql # Database schema
|
||||
|
||||
├── migration.sql # Database seed data
|
||||
|
||||
├── index.php # Main entry point
|
||||
├── docker-compose.yml # Docker configuration
|
||||
|
||||
## Tasks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user