3. endpoints.io
Goals
â
â
â
â
â
â
paste code in a browser
click deploy
code now accessible via an http endpoint
go from code, to live api in 30 seconds
abstract all complexity
empower people who have never spawned a
vm ( mobile devs, accountant, translators ?)
4. endpoints.io
Goals
â detect dependencies from code
â create Procfile & requirements for buildpack
â choose server boilerplate based on
language
app.get(â/hitsâ,
function(req,res){
hits++;
res.send(hits);
});
5. endpoints.io
Lessons
â Make base image as complete as possible
â used a base tar. Append (vs create new tar)
â Small patch to buildstep to be able to write
outside /app also
â delete image right after spawning. but make
it easy to recreate an image if required later
using buildstep + buildpack + custom logic