Really simple messages board web application developed with Laravel 7.
Reference: https://laradock.io/getting-started/
- Git
- Docker [ >= 17.12 ]
-
Clone the laradock repository:
git clone https://github.com/laradock/laradock.git
-
Clone this repository:
git clone https://github.com/fsh0524/laravel-test.git
-
In laradock, edit your web server sites configuration.
cp env-example .env
At the top, change the
APP_CODE_PATH_HOST
variable to the project path.APP_CODE_PATH_HOST=/path/to/laravel-test/
In the project, edit the configuration for this project.
cp .env.example .env
-
(Optional) Change the port that nginx will use. If there are already some services using the port, you may want to change this.
# Change the port number to whatever you want. NGINX_HOST_HTTP_PORT=80 NGINX_HOST_HTTPS_PORT=443
-
In laradock's directory, build the environment and run it using docker-compose.
docker-compose up -d nginx
Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, …)
# With laradock user docker-compose exec -u laradock workspace bash
-
Install composer dependencies.
composer i
-
Migrate the database.
touch database/database.sqlite php artisan migrate:install
-
Generate your application encryption key using:
php artisan key:generate
-
Check http://localhost/ for the web application.