Skip to content

Interactive workshop slides for the course Back-end Development, bach. elo-ict @ Odisee, Belgium. ␥ Subjects: PHP basics/adv, Docker, Composer, bramus/router, URL Design, Twig, cookies, sessions, ...

Notifications You must be signed in to change notification settings

mjoris/workshops-back-end-development

Repository files navigation

Back-end Development - workshop materials

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

Installation instructions

Running the slides without working code examples

  • 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.html in a browser

Running the slides with working code examples

  • 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

Recipes and troubleshooting

Updating the course materials

  • Run from your terminal/cmd, in your workshops-back-end-development 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 and rerun docker-compose up.

Restoring the database (tables)

Might be necessary when this repository contains database updates.

  • Before running docker-compose up, delete all files in the mysql-data directory (except .gitignore)

About

Interactive workshop slides for the course Back-end Development, bach. elo-ict @ Odisee, Belgium. ␥ Subjects: PHP basics/adv, Docker, Composer, bramus/router, URL Design, Twig, cookies, sessions, ...

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published