Commit 1687eb4a authored by Miguel Mateo Montero's avatar Miguel Mateo Montero
Browse files

Delete README.md.txt

parent da349280
# Customer Service
This project provides de Customer service of the project. It provides a REST API to operate work with the pilot while the customer App is developed.
## Pre-requirement
Follow instructions to build and deploy the **Digital Currency library**:
https://scm.atosresearch.eu/fentec_digcur_uc_pub/digcur_lib_pub
## Configuration
This project used some of the properties of the configuration file **myMoney.properties** describe in: https://scm.atosresearch.eu/fentec_digcur_uc_pub/digcur_lib_pub#configuration
### logs
This project have its own configuration file for logs which mas be placed at the **conf** directory of the TOMCAT server:
```
/opt/tomcat/conf$ cat customer_log4j.properties
log4j.rootLogger=DEBUG, file
# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=/opt/tomcat/logs/customer.log
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
```
## REST API
The API provides the basic functions to:
- Create customer
- Withdraw eCoins
- Request contract for a purchase
- Perform the payment of the contract
-
### Create customer
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/create_customer_method.png)
### Withdrawal
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/withdrawal_method.png)
### Purchase
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/purchase_method.png)
### Payment
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/payment_method.png)
## Basic flow examples
Here you can find the three basic flows of the four main operations of the pilot.
### Create user
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/createCustomer.png)
### Withdrawal
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/withdrawal.png)
### Purchase and Payment
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/customer_service_pub/blob/master/img/purchase.png)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment