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.
Returns unsorted list of scrapped items
Returns currencies from fixer.io
You need the following to run server:
- Oracle JRE 8
- MongoDB on same host
- Systemd
firebase.keyfrom Firebase Cloud Messaging insecure.propertiesfixer.keyfrom 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 8080The 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.