Skip to content

Repository files navigation

How to run Project

  1. Install Dependencies:

    composer update
  2. Install Dev Container: (Select only mysql)

    php artisan sail:install --devcontainer
  3. Install Extentions: Install the Remote - Containers and Docker and Dev Container extensions in VS Code.

  4. Open VScode: Open Source Code in the project folder.

    code .
  5. Reopen in Container: Press F1, type Reopen in Container, and select it. VS Code will build the container and open your project inside it.

  6. Install Dependencies: Once inside the container, install the project dependencies.

    composer install
  7. Generate Key: Generate the Laravel application key.

    php artisan key:generate
  8. Run database.sql: Run the database.sql file to mysql.

    mysql -h <mysql-host> -u root -p -D <database> < database.sql
  9. Run Laravel Server: Once inside the container, run the Laravel development server.

    php artisan serve --host=0.0.0.0 --port=8000
  10. Access the Project: Open your browser and navigate to http://localhost:8000 to see your Laravel project running.

That's it! You now have your Laravel project running inside a development container.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages