Scrapper for pre-owned section of amiami.com
This application is a web-server and scrapper for pre-owned section of amiami.com
Spring Boot is used as main framework. Data is stored in MongoDB.
Routes
/v1/data
Returns unsorted list of scrapped items
/v1/currency
Returns currencies from fixer.io
Installation
You need the following to run server:
- Oracle JRE 8
- MongoDB on same host
- Systemd
firebase.key
from Firebase Cloud Messaging insecure.properties
fixer.key
from fixer.io insecure.properties
- Optionally you can setup port forwarding for default HTTP port
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080
The application is installed as systemd service, executable generated by spring boot gradle plugin.
Start, stop and install can be done with gradle task: startService
, stopService
and installService
are supported.
Repository version of firebase.key
and fixer.key
are encrypted in secure.properties.encrypted
, you can't use it.