Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PwPay Example

Try it out!

https://powerful-stream-73113.herokuapp.com/

Local Environment

Using Docker for our local environment

Requirements

  1. Having Docker installed (you will need to create a Hub account)
  2. Having Git installed

Installation

  1. Clone this repository into your projects folder using the git clone command

Instructions

  1. After cloning the project, open your terminal and access the root folder using the cd /path/to/the/folder command.
  2. To start the local environment, execute the command make run in your terminal. For Windows users, execute the command docker-compose -d up instead.
  3. 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/.

Database

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"

Start and stop server

  1. To start the local environment, execute the command make run in your terminal. For Windows users, execute the command docker-compose -d up instead.
  2. To stop the project, execute the command make stop in your terminal. For Windows users, execute the command docker-compose -d down instead.

In case there is any problem, try:

  1. docker-compose down
  2. docker-compose build app
  3. docker-compose up -d

About

Paypal clone, coded in PHP

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages