README.md in t2_airtime-0.5.0 vs README.md in t2_airtime-0.5.1
- old
+ new
@@ -1,9 +1,10 @@
[](https://travis-ci.org/matteolc/t2_airtime)
[](https://badge.fury.io/rb/t2_airtime)
[](https://badge.fury.io/gh/matteolc%2Ft2_airtime)
[](https://gemnasium.com/github.com/matteolc/t2_airtime)
+[](https://codeclimate.com/github/matteolc/t2_airtime)
t2-airtime
==========
[T2-Airtime](https://matteolc.github.io/t2_airtime/) client, `t2_airtime`.
@@ -23,16 +24,35 @@
Download image:
```
docker pull voxbox/t2_airtime
```
-Run `docker run voxbox/t2_airtime`
-Build from source code:
+Export your secrets:
+```sh
+export T2_SHOP_USER=<your_username>
+export T2_AIRTIME_KEY=<your_token>
```
-docker build -t "voxbox/t2_airtime" .
+
+Export the host allowed to access the API (CORS):
+```sh
+export CORS_ORIGIN=<your_frontend_address>
```
+
+Run:
+
+```sh
+docker run -d \
+ --name t2_airtime \
+ -p 3000:3000 \
+ -e T2_SHOP_USER \
+ -e T2_AIRTIME_KEY \
+ -e CORS_ORIGIN \
+ voxbox/t2_airtime
+docker logs t2_airtime -f
+```
+
### Setup Transfer-To credentials
1. Make sure you are a registered user of [Transfer-To](https://www.transfer-to.com/home).
2. Enable Two Factor Authentication (2FA) in your [Transfer-To Shop](https://shop.transferto.com) Security Center section
\ No newline at end of file