Hacker News new | ask | show | jobs
by sfifs 2614 days ago
I created NasPics specifically for this reason. I wrote it in pure Go with no dependencies for ease of cross compilation since my NAS runs a weird old Debian based distribution of Linux on ARM. Running it is just cross compiling a binary, copying over and executing. For restart across boots, I just added a simple SystemD service file.

https://github.com/srinathh/naspics

(edit: some data destination paths are probably hard coded since I wrote it for myself but can be easily broken out into command line options if needed)

2 comments

I appreciate the "no dependencies" but it seems the client still needs NodeJS:

> It is build on React using the Create React App tool, written in Javascript and requries a NodeJS development environment.

It's needed just to build the front end on dev machine. The front end HTML JS and resource files are embedded into the binary executable during compilation.. so i literally just copy over a binary
You need node to "build" a React app, but not (generally) to serve it. Can typically just stick it on S3 or in an Apache htdocs directory or whatever. Unless your backend is Node and you're doing some server-side-rendering stuff.
Do you have a demo somewhere or some screenshots of the client?
Yeah I should probably improve the README file.

https://m.imgur.com/gallery/gNFw1PU

https://m.imgur.com/gallery/NzatdKZ