- Laravel: Version 11.0
- PHP: Version 8.3
- Composer: Version 2.7.1
- MySQL / MariaDB: Latest
- Node.js: Version 20
- NPM: Version 9.2
- Docker: Version 27.1.1
- Mailtrap: For email testing
-
Clone the repository:
git clone https://github.com/madyardwn/simple-app.git
-
Install dependencies:
composer install npm install npm run dev # watch npm run build # build
-
Create a new
.envfile:cp .env.example .env
-
Generate a new application key:
php artisan key:generate
-
Update the
.envfile with your database credentials:DB_CONNECTION=mysql DB_HOST=127.0.0.0 DB_PORT=3306 DB_DATABASE=your_database DB_USERNAME=your_username DB_PASSWORD=your_password
-
Create a symbolic link for the storage directory:
php artisan storage:link
-
Run database migrations:
mkdir -p storage/app/public/logos # dir for image from fakerphp artisan migrate:fresh --seed
-
Start the Laravel development server:
php artisan serve
-
Clone the repository:
git clone https://github.com/madyardwn/simple-app.git
-
Create a new
.envfile:cp .env.example .env
-
Update the
.envfile with your database credentials:DB_CONNECTION=mysql DB_HOST=simple-app-db DB_PORT=3306 DB_DATABASE=your_database DB_USERNAME=your_username DB_PASSWORD=your_password
-
Export UID for the Docker container:
export UID=$(id -u)
-
Build the Docker image:
docker compose build app
-
Start the Docker containers:
docker compose up -d
-
Install dependencies:
docker compose exec app composer install docker compose exec app npm install docker compose exec app npm run build
-
Generate a new application key:
docker compose exec app php artisan key:generate -
Create a symbolic link for the storage directory:
docker compose exec app php artisan storage:link -
Run database migrations:
docker compose exec app mkdir -p storage/app/public/logos # dir for image from faker
docker compose exec app php artisan migrate:fresh --seed -
Access the application at
http://localhost:8000.