Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeffersonrucu/setup_laravel

Laravel Application Starter with Docker A streamlined setup for Laravel applications using Docker. Includes steps for configuring environment variables, installing dependencies, and generating the application key.
https://github.com/jeffersonrucu/setup_laravel

docker laravel php

Last synced: 9 days ago
JSON representation

Laravel Application Starter with Docker A streamlined setup for Laravel applications using Docker. Includes steps for configuring environment variables, installing dependencies, and generating the application key.

Awesome Lists containing this project

README

        

Laravel Logo

## About Laravel

Laravel is a web application framework with an expressive and elegant syntax. It aims to make development an enjoyable and creative experience by simplifying common tasks used in many web projects, such as routing, authentication, and database migrations. Laravel is accessible, powerful, and provides the tools required for building large and robust applications.

## Starting the Application with Docker

### 1. Create the .env File
```bash
cp .env.example .env
```

### 2. Start the Project Containers
```bash
docker-compose up -d
```

### 3. Access the App Container
```bash
docker-compose exec app bash
```

### 4. Install Project Dependencies
```bash
composer install
```

### 5. Generate the Laravel Application Key
```bash
php artisan key:generate
```

### Note
Node.js is not included in the Docker environment. You need to have Node.js installed on your machine. Use the following commands outside the Docker bash shell. Version 23 of Node.js is recommended.
```bash
yarn && yarn build
OR
npm install && npm run build
```

### Common Links
- Laravel: [http://localhost:8000](http://localhost:8000)
- Maillog: [http://localhost:8025](http://localhost:8025)
- PHPMyAdmin: [http://localhost:8080](http://localhost:8080)

## License
The Laravel framework is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).