Giter VIP home page Giter VIP logo

notifier-packt's Introduction

notifier-packt

Codacy Badge Codacy Badge License

Spring Boot scheduled service to check for free packt daily offers.

Cloning and importing the project

  1. Execute git clone to download the repository.
  2. Once you have downloaded it, import it in your favourite IDE.
  3. OPTIONAL Compile the code and obtain the executable jar.

Configuration

Notifier Packt is fully configurable. You can do it in three different ways:

  • Editing the external application.yaml file.
  • Overriding properties via environment variables.
  • Overriding properties via program arguments.

General properties

Property Values Default Description
app.lang en/es en Sets the language of the application
app.cron (cron expression) 0 0 4 * * ? Sets the time on which the app will look for new free offers
app.notifications.twitter.enabled true/false true Enables or disables the twitter notifications
app.notifications.email.enabled true/false true Enables or disables email notifications

Twitter specific properties

If twitter notifications are enabled, you will also have to configure the following properties:

Property Values Description
app.notifications.twitter.accessSecret <access_secret> Enables or disables the twitter notifications
app.notifications.twitter.accessKey <access_key> Enables or disables email notifications
app.notifications.twitter.consumerKey <consumer_key> Sets the master password for encryption
app.notifications.twitter.consumerSecret <consumer_secret> Sets the master password for encryption

Mail specific properties

If email notifications are enabled, you will need to configure the following SimpleJavaMail properties as well:

http://www.simplejavamail.org/#section-available-properties

Encryption specific properties

You can use Jasypt to encrypt any password you want to secure. Then, you can set the encryption master password using the following property:

Property Values Description
jasypt.encryptor.password <master_password> Sets the master password for encryption

Any encrypted property password must follow the format: ENC(encrypted_password)

Example: app.notifications.twitter.accessSecret = ENC(my-encrypted-password)

How to execute

Java execution

After you have configured any properties and environment variables, just launch it as:

java -jar notifier-packt.jar

To override a property via program argument, just do it as it follows:

java -jar notifier-packt.jar --app.lang=en

Docker execution

A Dockerfile is provided to run Notifier Packt as a Docker container.

In order to build and execute the container, just modify and execute the following commands:

Build:

docker image build -t flashk/notifier-packt:<version> .

Run:

docker container run -d flashk/notifier-packt:<version>

License

Notifier Packt is Open Source software released under the Apache 2.0 license.

Third Party Licenses

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.