Best laravel framework open-source packages.

Simple blog

Experience the simplicity of building and managing your own blog with this Dockerized Laravel project. This repository provides an easy-to-use Docker Compose setup, including services for the Laravel application, Nginx web server, MySQL database, and Adminer for efficient database management.
Updated 4 months ago

Simple Blog

This repository contains a Docker Compose setup for a Laravel project. It includes services for the Laravel application, Nginx web server, MySQL database, and Adminer for database management.

Prerequisites

Make sure you have Docker and Docker Compose installed on your machine.

Setup Instructions

  1. Clone this repository:

    git clone https://github.com/winkersco/simple-blog
  2. Create a .env file in laravel folder:

    cd simple-blog/laravel
    cp .env.example .env
  3. Get back to project folder and Start docker containers:

    cd ..
    docker compose up -d
  4. Install laravel dependencies:

    docker compose exec app composer install
  5. Generate laravel application Key:

    docker compose exec app php artisan key:generate
  6. You can also run tests for your application (optional):

    docker compose exec app php artisan test
  7. Run migrations and seeders:

    docker compose exec app php artisan migrate --seed
  8. Now, open your browser and navigate to http://localhost:8080.

Default Credentials

You can use the following default credentials for logging into the application:

  • User:

    • Email: user@gmail.com
    • Password: password
  • Admin:

    • Email: admin@gmail.com
    • Password: password

Adminer - Database Management

You can use Adminer to manage your database. To access Adminer, follow these steps:

  1. Open your browser and navigate to http://localhost:8081.
  2. Use the following default database credentials or change them in configurations:
    • System: MySQL
    • Server: db
    • Username: default
    • Password: secret
    • Database: default
Tags nginx