Skip to content

A tic tac toe game to learn PHP with the session storage and get requests

Notifications You must be signed in to change notification settings

Hironogawa/devCo-php-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

Build a tic tac toe game with php, get request and session storage.

Getting Started

Try to work in the exercise without looking at the solution. If you get stuck, then check the files in the main folder.

Docker local environment

A docker build script is provided, but you can code without docker if you want.

Content

We have a docker-compose.yml file that will create the following containers:

  • A container for Nginx;
  • A container for PHP;

Prerequisites

Make sure Docker Desktop for Mac or PC is installed and running, or head over here if you are a Linux user. You will also need a terminal running Git.

This setup also uses localhost's port 3000 for Nginx, so make sure it is available.

Directions of use

Clone the repository and change the current directory for the project's root:

Run the following command:

$ docker-compose up -d

Cleaning up

To stop the containers:

$ docker-compose stop

To destroy the containers:

$ docker-compose down

To destroy the containers and the associated volumes:

$ docker-compose down -v

To remove everything, including images and orphan containers:

$ docker-compose down -v --rmi all --remove-orphans

About

A tic tac toe game to learn PHP with the session storage and get requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published