eBay Tool

eBay Tool

Das eBay Tool ist ein simpler Produkt-Styler für eBay Auktionen

Name Last Update
application Loading commit data...
cache/template Loading commit data...
docs Loading commit data...
library Loading commit data...
public Loading commit data...
tests Loading commit data...
var/docker Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
Changelog Loading commit data...
Dockerfile Loading commit data...
INSTALL Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
cli-config.php Loading commit data...

eBay-Tool Container

eBay-Tool is a simple product styler for product descriptions on ebay.

Requirements

Production

  • A running MySQL server
  • A running mail server

Development

Getting started

Deployment

This application is able to be deployed with the help of docker. The next sections will help you building a shipable image of the app.

Quick Start

# Run the container
$ docker run -d \
    -p 10080:80 \
    -e 'DB_USER=root' \
    -e 'DB_PASS=' \
    -e 'DB_HOST=172.17.42.1' \
    -e 'DB_PORT=3306' \
    -e 'DB_NAME=ebay_tool' \
    -e 'APP_SALT=xxx' \
    -e 'APP_RECAPTCHA_PUBKEY=xxx' \
    -e 'APP_RECAPTCHA_PRIVKEY=xxx' \
    "e5.lan:5000/ebay-tool:0.3.1"

Available Configuration Parameters

Application

  • APP_SERVERNAME: Application uri. Defaults to http://ebay-tool.hermann-mayer.net.
  • APP_SALT: Application salt.
  • APP_RECAPTCHA_PUBKEY: ReCaptcha public key.
  • APP_RECAPTCHA_PRIVKEY: ReCaptcha private key.

Database

  • DB_HOST: Hostname/IP address of the MySQL server
  • DB_PORT: Port of the MySQL server. Defaults to 3306.
  • DB_NAME: Name of the database. Defaults to ebay_tool.
  • DB_USER: Username for auth. Defaults to root.
  • DB_PASS: Password for auth. Defaults to ~.

E-Mail

  • SMTP_HOST: SMTP mail server hostname. Defaults to mail.lan.
  • SMTP_PORT: SMTP mail server port. Defaults to 25.
  • SMTP_SENDER_ADDRESS: Sender address of any mail. Defaults to ebay-tool.hermann-mayer.net.

Data volumes

Its important to mount a data volume on /var/www/html/public/extern/images. This is the path to all uploaded images. If you don't setup a volume on this path you will probably loose your uploaded images on a container restart.

Here is simple example:

# Run the container
$ docker run -d \
    -p 10080:80 \
    -e 'ALL_YOUR_SETTINGS=xxx' \
    -v '/your/host/path:/var/www/html/public/extern/images'
    "e5.lan:5000/ebay-tool:0.3.2"

Development

# Build the container
$ make build-image

# Start the builded container (quickstart)
$ make start-image

# Stop the container
$ make stop-image

# Purge the build - so you could start over with
# another build
$ make clean-image

# See logs for the running container
$ make image-logs

# Start a bash session on the builded container for debugging.
# This command need **clean** or **stop** like the normal **start**.
$ make start-bash-image