This tutorial will guide you through the installation procedure of the Web Project Skeleton.
The only packages you need to install right now are docker and docker-compose
Then, clone the Web Project skeleton on your machine:
git clone https://github.com/rparpa/ensiie-project.git
cd ensiie-project
The next step is to set some environment variables in the .env
file
- Open this Skeleton on your favorite IDE : PHPStorm or VSCode.
- Open the file .env
- DOCKER_USER_ID: to obtain the value of this variable you need to execute this command
$(echo id -u $USER)
on a Terminal. Copy and past the output. - REMOTE_HOST: For those who want to use the PHPStorm Debugger, put your IP address. Otherwise, skip this step.
- DOCKER_USER_ID: to obtain the value of this variable you need to execute this command
Now, let's begin the installation :
make install
. This command may take time.- That's it! Your website is running http:localhost:8080
Below are some useful commands :
make stop
Stop the containersmake start
Start the containersmake db.connect
Connect to th databasemake phpunit.run
Run the PHPUnit testsmake install
Reinstall all containers