Giter Site home page Giter Site logo

gadogado / hn-hired Goto Github PK

View Code? Open in Web Editor NEW
58.0 0.0 9.0 1.96 MB

โš›๏ธ remix + ๐Ÿ˜ prisma app on ๐ŸŽˆfly.io that grabs ycombinator "who's hiring" posts

Home Page: https://hnhired.fly.dev

License: MIT License

Shell 1.77% JavaScript 6.04% Dockerfile 2.67% Procfile 0.14% TypeScript 89.38%
hacker-news flyio prisma

hn-hired's Introduction

hn-hired

https://hnhired.fly.dev

A small โš›๏ธ remixjs + ๐Ÿ˜ prisma app running on ๐ŸŽˆ fly.io that grabs all of the latest ycombinator.com 'who's hiring' posts

Running locally

  1. npm install
  2. Create an .env file: cp .env.example .env
  3. hn-hired uses the Prisma ORM with Postgres. You'll need to create a new local db and update the .env value for DATABASE_URL= with the respective db url, e.g., createdb hnhired && postgresql://postgres:postgres@localhost:5432/hnhired (postgresql://USER:PASSWORD@HOST:PORT/DATABASE)
  4. When hn-hired grabs items from firebase it normalizes the item text and associates any preconfigured 'tags' that match the text. You'll need to seed the database with these tags as well as generate the client and run migrations: npm run setup - if there's any issues locally w/ the migrations you might need to npx prisma db push
  5. Build the app: npm run build
  6. Run the process that grabs, normalizes, and persists the ycombinator job post items and stories: npm run manual-get-latest NOTE: You can optionally increase how effective the Promise.all is when fetching firebase items by changing (increase) the .env value CONCURRENCY_LIMIT=. This largely depends on the architecture of your local machine.
  7. Run the server: npm run dev and visit http://localhost:3000

Design

  1. I used used Figma for a first pass on the designs here: https://figma.com/file/cdelfyxq1MfUet9K1dzogg/hnhired?node-id=2%3A3

Testing the Docker container locally

  • First build the container within the root of the project: docker build -t hnhired-dev .
  • When run locally the current entrypoint in the Dockerfile causes the container to spin up and then immediately terminate which makes debugging impossible. For debugging the container you can pass an alternate entrypoint command that won't exit: docker run -it --entrypoint=/bin/bash hnhired-dev

hn-hired's People

Contributors

0x70b1a5 avatar gadogado avatar schpet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hn-hired's Issues

Highlight Searched Terms

It'd be nice to have the ability to visually pick out the terms I'm looking for on this page.

Pagination

When there are many entries, and HackerNews break the comments with a "More" link at the bottom, does this script follow them?

It doesn't seem to me at the moment.

exclude jobs with certain keywords

Is there a way to exclude jobs that contain certain keywords? For example, if I want to search for jobs that contain the word Python but exclude those that contain the word ruby, how would I do it?

If it is not possible in the current setup, could you please implement it?

thanks
raju

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.