Giter Site home page Giter Site logo

asnair / hn-hired Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gadogado/hn-hired

0.0 1.0 0.0 2.01 MB

HN Who's Hiring ๐Ÿ‘”+ AWS Lambda ๐Ÿšข + Next.js ๐Ÿ’ป + Material UI ๐Ÿ’…

Home Page: http://hnhired.com

License: MIT License

JavaScript 100.00%

hn-hired's Introduction

Hn Hired


Build Status

Serverless + Searchable HN Who's Hiring Posts

Features

  • HN Hired grabs the latest HN who's hiring post and presents everything with a searchable material ui experience.
  • The app utilizes Next.js to run serverless via AWS Lambda; both the client and server exist within a function which eases cross-origin opaque resource retrieval restrictions.
  • A manually curated list of trends are matched with a cursory regexp to give a loose ranking in the left sidebar.
  • Fuse.js provides very fast client fuzzy searching for anything in the comments.
  • Material UI components enrich the presentation with autocomplete, search chips, and a simple responsive layout.

Setup

  1. Clone this repo and run yarn to install the project dependencies.
  2. Run yarn dev to start the local server and visit http://localhost:3000 to run the app.
  3. If you're unfamiliar with Next.js the file system is the main API. Anything within pages/ ends up having a corresponding route. With this application there is a single file, index.js, which is the entry point.

Serverless Deployment

Serverless deployment can be tricky but there are some wonderful tools available to bring everything together and make it possible. I opted to use Claudia.js - here's some important steps to make everything happen:

  1. Setup the necessary AWS credentials. See here under Configuring access credentials.
  2. Change your .aws/credentials so that there is a profile for claudia:
$ cat ~/.aws/credentials
[claudia]
aws_access_key_id = abc
aws_secret_access_key = 123
  1. Build the project with yarn build
  2. Create an AWS Lambda function and deploy it:

claudia create --region us-west-1 --handler lambda.handler --deploy-proxy-api --profile claudia --memory 1280

# If there are issues with the path to the bin you can either install claudia as a global package or simply just specify the full path to the respective bin, `node_modules/.bin/claudia`.
  1. Any subsequent deploys should run yarn deploy

hn-hired's People

Contributors

gadogado avatar

Watchers

Austin avatar

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.