diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-08-09 12:38:58 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-08-09 12:38:58 +0200 |
commit | 395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b (patch) | |
tree | ce4ddc9f369b3287504922d59220f8511b53d9cc /src/frontend/README | |
parent | bfac37697930c75e2cba0180ffcd46345f0eb361 (diff) | |
download | merchant-395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b.tar.gz merchant-395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b.tar.bz2 merchant-395d3f5e57d2c39cb3bd1a7ee8e768507b5d1e6b.zip |
adding POST to give the backend the needed JSON
for generating the contract. I.e. adding POST /contract
Diffstat (limited to 'src/frontend/README')
-rw-r--r-- | src/frontend/README | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/frontend/README b/src/frontend/README index a89b9d36..fe8f44ab 100644 --- a/src/frontend/README +++ b/src/frontend/README @@ -1,24 +1,23 @@ This directory contains the files implementing the frontend of the new merchant architecture. -Only tested on nginx. To run the website, it suffices to have all the files in the same -directory, then having PHP enabled, and setting the following two redirections: - -1. your_site/certal/ => your_site/cert.php -2. your_site/payler/ => your_site/pay.php +Only tested on nginx. To run the website, it suffices to have all the .php and .html files +in the same directory, and having PHP (with the extension 'pecl_http' enabled) enabled. File |What implements -------------------------------- -o index.html | The "negotiation" view, that is the form - that allows the user to choose the product to buy. +o index.html | The homepage. Here it is possible to decide how much donate + to whom you would like. o checkout.php | The "payment selection" that is the form that allows the user to choose the payment method he wishes to use. - It also implements the request of certificate and its showing as a - popup window (by JavaScript in it). For debugging purposes, it has a - certificate hardcoded in it. + It also implements the request of certificate and trigger the certificate + viewer in the extension when it arrives in the customer's machine. + -o cert.php | Replies with a JSON certificate that is held in a 'session' variable. +o cert.php | Replies with a JSON certificate gotten from the backend. o pay.php | Actual receiving of money, plus it gives back a "fullfillment" page that informs the user of his well ended deal. +o toy | the nginx configuration file skeleton for this virtual server. To be tuned + as needed. |