Commit feab0003 authored by Miguel Mateo Montero's avatar Miguel Mateo Montero

readme

parent cb128edb
# Merchant server
This project provides de Merchant server of the project.
## 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 merchant_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/merchant.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
```
## Compile and deploy
- go to the directory created when you clone this project, the one with the pom.xml file.
- compile: ```mvn clean install```
- deploy: you can copy the war file ```./target/merchant_server.war``` to the directory **webapps** of the TOMCAT server or deploy using its admin web page.
## PUBLIC API
### GET MERCHANTS
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/merchant_server_pub/raw/master/img/get_merchants.png)
### GET PRODUCTS
![](https://scm.atosresearch.eu/fentec_digcur_uc_pub/merchant_server_pub/raw/master/img/get_products.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