Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.
/ sojobs Public archive

Search for Hacker News "Who is hiring" job postings

License

Notifications You must be signed in to change notification settings

drorm/sojobs

Repository files navigation

#Overview

Sojobs scans the jobs from the monthly hacker news "who is hiring" thread and loads them into a database, and makes them available for searching, by city, key word, visa or remote option. See https://sojobs.me

#Prerequesites

#Configuration

  • git clone http://github.com/drorm/sojobs
  • for each of the following copy the config files and adjust the credentials, email addresses, server names, etc
    • cp server/config.sample.json server/config.json
      • host
      • port
    • cp server/sparrowConfig.sample.js server/sparrowConfig.js
      • initAdmin -- this is the admin of the app.
        • email
        • password
        • first
        • last
      • emailFrom -- which user are notifications like email verification are coming from
    • cp server/datasources.local.sample.js server/datasources.local.js
      • db -- database credentials
      • mail/smtp -- for email verification when users sign up

#Build

  • cd jobs
  • npm install
  • grunt. This will also do the following:
    • cd client
      • npm install
      • grunt
  • If you're going to make changes to the client javascript, you should run the following so it builds the concatenated file
    • grunt watch

#Db setup

  • psql jobs jobs < server/db/schema.sql
  • psql jobs jobs < server/db/cities.sql

Other

#Run

##Run directly

  • node server/fetchData/fetch.js -- fetches the jobs listings from Hacker News
  • node server/server.js -- this is the main node/express/loopback.js app

##Use pm2 Use the pm2 process manager, http://pm2.keymetrics.io/

  • run node_modules/.bin/pm2 start ecosystem.json
  • logs go into ~/.pm2/logs

This will start two apps:

  • server/server.js -- this is the main node/express/loopback.js app
  • server/fetchData/fetch.js -- fetches the jobs listings from Hacker News

About

Search for Hacker News "Who is hiring" job postings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published