Code Monkey home page Code Monkey logo

laravel-intro's Introduction

Web & Mobile Full-Stack - Laravel

Installation instructions

Setup docker environment

  • Install git and Docker Desktop.
  • Start the Docker Desktop application
  • Run from your terminal/cmd
git clone https://github.com/mjoris/workshops-wmfs-laravel.git
  • When Docker is up and running, run from your terminal/cmd
cd workshops-wmfs-laravel
docker-compose up
  • When the containers are up and running, run from a new terminal/cmd
cd workshops-wmfs-laravel
docker-compose exec php-web bash

From the Bash terminal in the php-web container, run the following commands:

composer install
cp .env.example .env
php artisan key:generate
  • Browse to http://localhost:8080
  • Stop the environment in your terminal/cmd by pressing Ctrl+C
  • In order to avoid conflicts with your lab environment, run from your terminal/cmd
docker-compose down

Recipes and troubleshooting

Updating the course materials

  • Run from your terminal/cmd, in your workshops-wmfs-laravel directory
git reset --hard
git pull origin master

docker-compose up does not start one or more containers

  • Look at the output of docker-compose up. When a container (fails and) exits, it is shown as the last line of the container output (colored tags by container)
  • Alternatively, start another terminal/cmd and inspect the output of docker-compose ps -a. You can see which container exited, exactly when.
  • Probably one of the containers fails because TCP/IP port 8000, 8080 or 3307 is already in use on your system. Stop the environment, change the port in docker-compose.yml en rerun docker-compose up.

Restoring the database (tables)

Might be necessary when this repository contains raw database updates.

  • Before running docker-compose up, delete all files in the mysql-data directory

Nevertheless, Laravel-related database updates will be provided in the form of Migrations, which can be administered by running php artisan migrate from the php-web container

laravel-intro's People

Contributors

dependabot[bot] avatar xevro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.