-
Notifications
You must be signed in to change notification settings - Fork 0
About This Application
Lois Onyinyemme Bassey edited this page Mar 20, 2024
·
2 revisions
Test-Driven Development
- Employ TDD methodologies throughout the development.
- Use Pest for writing and running tests.
- Ensure comprehensive test coverage for all functionalities.
Docker Integration via Laravel Sail
- Ensure the application is containerized and can be run using Docker.
- Utilize Laravel Sail for easy Docker management.
- Include Swoole within the Docker setup for Octane.
- The
make setup:app
command simplifies the setup process of this application on your local environment. It automates the following steps:- Pulls Required Docker Images: Fetches necessary Docker images for PostgreSQL, Redis, and Laravel Sail.
- Creates Essential Containers: Initializes PostgreSQL, Redis, and Laravel Sail containers.
- Sets Up Composer: Prepares Composer for dependency management.
- Installs Dependencies: Executes composer install to install project dependencies.
- Generates Encryption Key: Creates a unique encryption key for your Laravel application.
- Configures Supervisor: Sets up Supervisor to manage critical processes.
- Database Setup: Initializes the application's database, creating required tables.
- The
.env
file must have the folloiwng key variablesAPP_PORT=6745
APP_URL=http://localhost:6745
REDIS_HOST=redis
OCTANE_SERVER=swoole
Run php pest tests
make run-test
Start running the application
make start
Stop the application containers
make stop
- DB Service: Postgres
- Queue Service: Redis
-
Tools
- Swoole
- Redis
- Laravel Actions Package
- Laravel Octane
- Laravel Sail
- PHP Pest
-
Principles
- TDD
- DDD