HN Who's Hiring ?+ AWS Lambda ? + Next.js ? + Material UI ?
Serverless + Searchable HN Who's Hiring Posts
yarn
to install the project dependencies.yarn dev
to start the local server and visit http://localhost:3000
to run the app.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 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:
Configuring access credentials
..aws/credentials
so that there is a profile for claudia:$ cat ~/.aws/credentials
[claudia]
aws_access_key_id = abc
aws_secret_access_key = 123
yarn build
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`.
yarn deploy