This is an discontinued app created in late 2019 to:
- Scrape relief/humanitarian/NGO job websites data all over the web and aggregate them in a single place
- The front-end UI was based on (a previous version of) WelcomeToTheJungle
- React
- MaterialUI for the UI Library
- React-intl for the i18n setup
- React-markdown to render markdown markup
- React-spring for the animation library
- Lodash for the utilities
- Express for the Node web minimalist framework
- Puppeteer for the web data scrapping
- Knex as the Query-Builder over a Postgres database
- Aws-Sdk to interact with the AWS services
- Validator.js for data validation
- Node-cron for the CRON jobs
- Franc-min for text language detection
- Bcrypt / JWT for the authentication/authorization flow
- Chance / Faker for the random data generation
This app is discontinued and there is no live version available anymore.
How to install the Relief Jobs app
npm i -g psql knex
createdb reliefjobs
createdb reliefjobs_tests
psql reliefjobs
A reliefjobsroot user is required, let's create one
CREATE USER reliefjobsroot WITH ENCRYPTED PASSWORD 'new_password';
The new_password should be === to PGPASSWORD in the .env file)
GRANT ALL PRIVILEGES ON DATABASE reliefjobs TO reliefjobsroot;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO reliefjobsroot;
If the reliefjobsroot user already exists, and you just need to update the password:
ALTER USER root WITH PASSWORD 'new_password';
Then launch the init SQL file to initiate the database:
\i [your computer's root path...]/reliefJobs/packages/server/scripts/postgresql/init.sql
Execute latest migrations to build the database (times 2 for the test db to be migrated as well)
knex migrate:latest
knex migrate:latest --env test
Execute seed files to fill the databases with random data
knex seed:run
knex seed:run --env test
This file is located in ~/.aws/credentials for Linux, Unix, and macOS
[reliefjobs]
aws_access_key_id=<YOUR_AWS_ACCESS_KEY_ID>
aws_secret_access_key=<YOUR_AWS_SECRET_ACCESS_KEY>