Skip to content

wicadmin/ebay-snipe-frontend

Repository files navigation

Build Status eBay Snipe FrontEnd

This project is a FrontEnd to consume eBay Snipe Server.

Pre Requisites

  1. Install eBay Snipe Server:
docker run -d -p 3647:3647 \
-e 'EBAY_USERNAME=<your_username>' -e 'EBAY_PASSWORD=<your_password>' \
ruippeixotog/ebay-snipe-server:0.2-SNAPSHOT
  1. Install Angular CLI:
npm install -g @angular/cli
  1. Clone this project:
git clone https://github.com/Helvio88
  1. Compile this project:
cd ebay-snipe-frontend
ng build --prod
  1. Copy dist files to your web folder and set permissions:
cp dist/ebay /var/www/ebay -R
chown www-data:www-data /var/www/ebay -R

NginX Configuration

Only relevant part is displayed. For more information, visit NginX

	root /var/www/ebay/;
	index index.html;

	location /auction {
		proxy_pass http://127.0.0.1:3647/auction;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

	location /snipes {
		proxy_pass http://127.0.0.1:3647/snipes;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}