https://powerful-stream-73113.herokuapp.com/
Using Docker for our local environment
- Having Docker installed (you will need to create a Hub account)
- Having Git installed
- Clone this repository into your projects folder using the
git clonecommand
- After cloning the project, open your terminal and access the root folder using the
cd /path/to/the/foldercommand. - To start the local environment, execute the command
make runin your terminal. For Windows users, execute the commanddocker-compose -d upinstead. - Create "uploads" folder inside the "public" folder
Note: The first time you run this command it will take some time because it will download all the required images from the Hub.
At this point, if you execute the command docker ps you should see a total of 4 containers running:
pw_local_env-nginx
pw_local_env-admin
pw_local_env-php
pw_local_env-db
The application should be running in the 8030 port of your local machine but, before trying it, lets add one entry to your hosts file.
For OSX users, this file should located at /etc/hosts. For Windows users, you can check this guide.
Edit the file and add the following entry:
127.0.0.1 pw.pay
Then, go to the project folder and run composer update.
At this point, you should be able to access to the application by visiting the following address in your browser http://pw.pay:8030/.
To access database we are going to use Adminer, found at http://localhost:8080/. To login the credentials are user: root password: admin BBD: test.
After logging in, we need to create the table User, to create it, you have to go to the left part of the screen, SQL order button and execute the SQL script named: "bbdd.sql"
- To start the local environment, execute the command
make runin your terminal. For Windows users, execute the commanddocker-compose -d upinstead. - To stop the project, execute the command
make stopin your terminal. For Windows users, execute the commanddocker-compose -d downinstead.
- docker-compose down
- docker-compose build app
- docker-compose up -d
