-
Couldn't load subscription status.
- 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:appcommand 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
.envfile must have the folloiwng key variablesAPP_PORT=6745APP_URL=http://localhost:6745REDIS_HOST=redisOCTANE_SERVER=swoole
Run php pest tests
make run-testStart running the application
make startStop 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