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.gitcd 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.
- Create an .env file
cp env.dist .env& edit it with your own values:- 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. - DOCKER_USER: your current user which you can get with
whoami. - REMOTE_HOST: (optional) 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 stopStop the containersmake startStart the containersmake db.connectConnect to th databasemake phpunit.runRun the PHPUnit testsmake installReinstall all containers