My Résumé as a Serverless API

node v5.12.0
version: 1.0.1
endpointsharetweet
/* +---------------+ | What? | +---------------+ */
I developed my resume as an infinitely scalable serverless API. This is an interactive notebook in which we'll take it for a spin --
Available endpoints we can query --
await availableEndpoints();
Querying https://abhirag.me/resume/api/basic_info for basic information about me--
await basicInfo();
Querying https://abhirag.me/resume/api/education for my educational qualifications--
await education();
Querying https://abhirag.me/resume/api/skills for my skill set --
await skills();
Querying https://abhirag.me/resume/api/work for my work experience --
await work();
API wrapper --
async function availableEndpoints() { return JSON.parse(await require("request-promise")("https://abhirag.me/resume/api")); }; async function basicInfo() { return JSON.parse(await require("request-promise")("https://abhirag.me/resume/api/basic_info")); }; async function education() { return JSON.parse(await require("request-promise")("https://abhirag.me/resume/api/education")); }; async function skills() { return JSON.parse(await require("request-promise")("https://abhirag.me/resume/api/skills")); }; async function work() { return JSON.parse(await require("request-promise")("https://abhirag.me/resume/api/work")); };
module.exports = { availableEndpoints: availableEndpoints, basicInfo: basicInfo, education: education, skills: skills, work: work };
/* +----------------+ | How? | +----------------+ */
Written in Python using the Flask web framework(http://flask.pocoo.org/) and deployed on AWS Lambda using Zappa(https://www.zappa.io/).
/* +----------+ | Why? | +----------+ */
/* +------------+ | Why not? | +------------+ */
Loading…

no comments

    sign in to comment