Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonprickett/timestamp-service
Example Node.js systemd service for Raspberry Pi.
https://github.com/simonprickett/timestamp-service
debian debian-stretch medium-article node-js nodejs raspberry-pi raspberry-pi-3 systemd systemd-service
Last synced: about 1 month ago
JSON representation
Example Node.js systemd service for Raspberry Pi.
- Host: GitHub
- URL: https://github.com/simonprickett/timestamp-service
- Owner: simonprickett
- License: mit
- Created: 2018-07-04T21:33:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T17:39:53.000Z (over 6 years ago)
- Last Synced: 2024-10-29T15:49:09.110Z (3 months ago)
- Topics: debian, debian-stretch, medium-article, node-js, nodejs, raspberry-pi, raspberry-pi-3, systemd, systemd-service
- Language: JavaScript
- Homepage: https://simonprickett.dev/
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timestamp Service
This is an example Node.js systemd service for Raspberry Pi. This repository is used in a [Medium article](https://medium.com/@simon_prickett/writing-a-systemd-service-in-node-js-on-raspberry-pi-be88d9bc2e8d) that describes how to use systemd with Node.js on the Pi.
## Usage
Clone the repo, `cd` to the folder containing the cloned files, then:
```
export PORT=8888
npm start
```Browse to `http://127.0.0.1:8888` or `curl 127.0.0.1:8888` to see the current timestamp.
## Installing systemd Service
Instructions on how to install this as a systemd service using the `timestamp.service` file in this repo can be found in my [Medium article](https://medium.com/@simon_prickett/writing-a-systemd-service-in-node-js-on-raspberry-pi-be88d9bc2e8d).