Skip to content

omnitrogen/beta-gouv-jobs-notif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beta.gouv jobs push notification

Get a push notification when a new offer pops up on beta.gouv.fr/recrutement! 📳


About

As I am looking out to join a project at beta.gouv, I wanted to automate the job offers discovery, to avoid having to reload the same page over and over again.

To send a push notification to my mobile device, I chose PushNotifier. With that free service, it is possible to send notifications to an Android or iOS device, to Telegram, or even to a Webhook for more flexibility.


Getting started

Prerequisites

In order to run it locally, you will need to:

  1. Install Rust (or Docker if you want to run a containerized version).
  2. Create a PushNotifier account here.
  3. Generate a PushNotifier API Token here (only once you logged in) (this value will be called API_TOKEN).
  4. Create an application on the same page and get:
    1. An app package name (this value will be called APP_PACKAGE_NAME)
    2. An App Token (this value will be called APP_TOKEN)
  5. Install the PushNotifier app on your devices and log in (this will automatically add your device to the device list on PushNotifier).

Installation

  1. Clone the repo
    git clone https://github.com/omnitrogen/beta-gouv-jobs-notif
  2. Create a .env file at the root of the project. The file should look like this:
     API_TOKEN="<your_api_token>"
     APP_PACKAGE_NAME="<your_app_package_name>"
     APP_TOKEN="<your_app_token>"
  3. Compile and run the code:
    • With Rust:
      1. Create an optimized build with:
        cargo build --release
      2. Run the executable:
        ./target/release/beta-gouv-jobs-notif
    • With Docker:
      1. Build the image:
        docker build -t beta-gouv-jobs-notif .
      2. Remove the dangling intermediate image:
        docker image prune --filter label=stage=builder -f
      3. Run the container:
        docker run --rm -it beta-gouv-jobs-notif
        (This is just one way to run the container, you might have a better way ¯\_(ツ)_/¯)

License

Distributed under the Unlicense License. See LICENSE for more information.

TODO:

  • Add tests
  • Unify error names

(back to top)

About

Get a push notification when a new offer pops up! 📳

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published