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