Skip to content

maikkundev/webtech-laravel

Repository files navigation

How to run the web app

  1. Clone the repository:

    git clone <repository-url>
    cd webtech-laravel
  2. Copy the example environment file and set your environment variables:

    cp .env.example .env

    Edit .env as needed (e.g., set database credentials, app key, etc).

  3. Build image:

    docker compose up -d --build
  4. Run database migrations

    docker exec webtech-laravel-laravel.test-1 php artisan migrate  

Warning

In Case of 2025_07_06_134850_create_sessions_table not being migrated (check with docker compose exec webtech-laravel php artisan migrate:status), do the following:

  1. Enter tinker mode:

    docker compose exec webtech-laravel php artisan tinker
  2. Execute the following code snippet:

    <?php
    DB::table('migrations')->insert([
    'migration' => '2025_07_06_134850_create_sessions_table',
    'batch' => 1
    ]);
    exit
  3. Rerun migrations:

    docker exec webtech-laravel-laravel.test-1 php artisan migrate  

Accessing the App

  • Visit http://localhost in your browser.
  • If you changed the port in docker-compose.yml, use that port instead.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages