Interactive workshop slides for the course Back-end Development, part of the Professional Bachelor ICT study program @ Odisee, Belgium.
A web-based slideshow containing many PHP code examples, which can be interactively executed in the provided Docker multi-container environment.
(CC) Joris Maervoet & Bram(us) Van Damme
- Install git and run from your terminal/cmd
git clone https://github.com/mjoris/workshops-back-end-development.git- Open the file
workshops-back-end-development/app/html/index.htmlin a browser
- Install git and Docker Desktop.
- Start the Docker Desktop application
- Run from your terminal/cmd
git clone https://github.com/mjoris/workshops-back-end-development.git- When Docker is up and running, run from your terminal/cmd
cd workshops-back-end-development
docker-compose up- 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- Run from your terminal/cmd, in your
workshops-back-end-developmentdirectory
git reset --hard
git pull origin master- 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.ymland rerundocker-compose up.
Might be necessary when this repository contains database updates.
- Before running
docker-compose up, delete all files in themysql-datadirectory (except.gitignore)
