How to create a snap for how2 (stackoverflow from the terminal) in Ubuntu 16.04

Simos Xenitellis simos.lists at googlemail.com
Tue Feb 7 08:16:24 UTC 2017


Hi All,

This is a complete tutorial on snapping "how2", a nodejs command-line
tool that searches for you on StackOverflow, and just outputs what was
selected as the correct answer.

Being a nodejs program, it is messy to install with all the
dependencies. So it was a very good candidate for snapping. There is a
plugin for nodejs in snapcraft, so the whole process looks very easy
to understand
Also, the app only requires networking, so it is another example to
only allow the "network" plug.

Ideas for improvement and questions:
1. If we wanted to adapt the "network" plug to only allow access to
specific IP addresses. etc, is it currently possible?
2. "how2" currently works over stackoverflow. It should be elemental
to make it work over AskUbuntu.

Link: https://blog.simos.info/how-to-create-a-snap-for-how2-stackoverflow-from-the-terminal-in-ubuntu-16-04/

HN submission: https://news.ycombinator.com/item?id=13587869

Simos




More information about the Snapcraft mailing list