summaryrefslogtreecommitdiff
path: root/README.md
blob: 967bafa070276bbbbcd32f2d091c5ce6e23aa1f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Taler Merchant Demos Setup
*Warning: This page is not completed yet. Follow the instructions at your own risk*
## Installing the dependencies
Step 1: `cd` into the directory:<br/>

> ```$ cd taler-merchant-demos```

<br/>
Step 2: Ensure Python3.5 or above is installed using a command like:<br/>

> ```$ sudo apt install python3.8 -y```

<br/>
Step 3: Ensure Python3 Pip is installed:<br/>

> ```$ sudo apt install python3-pip -y```

<br/>
Step 4: configure it using:<br/>

> ```$ ./configure --destination=local```

Step 5: Install UWSGI<br>
*NOTE: DO NOT INSTALL USING PIP2 (on my system, that is what the pip command uses) - INSTALL IT USING PIP3*

> ```$ pip3 install uwsgi```

<br/>
Step 6: Install LXML
*NOTE: DO NOT INSTALL USING PIP2 (on my system, that is what the pip command uses) - INSTALL IT USING PIP3*

> ```$ pip3 install lxml```
<br>

## Quick Install for the dependencies
Here's one command to automatically install all dependencies at once:
> ```$ sudo apt install python3.8 python3-pip -y; pip3 install lxml uwsgi; ./configure --destination=local```

## Configuring the demo
*This is just how I did it, and not the main method of doing it*

Step 1: Open the config:

> ```$ editor ~/.config/taler.conf```
<br>

Step 2: Adding the required keys:
> Copy & Paste the following into the file:
> ```
> [frontends]
> backend_apikey = "ApiKey Sandbox"
> backend = https://backend.test.taler.net/
> 
> [taler]
> currency = TESTKUDOS
> 
> [blog]
> http_port = 8080
> ```
<br>

Step 3: Configure the config:
> 1. Replace the backend api key with the api key for the backend<br>
> 2. Replace the backend URL with the actual backend link<br>
> 3. Replace the http port with the port<br>
> 4. (Optional: Replace the currency with your currency)
<br>

## Applying Changes
To apply changes, use
> ```$ make install```

## Running the program
To start the server, use the following command:<br>
> ```$ taler-merchant-demos --serve-http blog```