Make it easy for people to check if you are alive or not.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Agastya f6b7a4f683
Create project.
2 months ago
.gitignore Create project. 2 months ago
LICENSE Create project. 2 months ago
README.asc Create project. 2 months ago
am-i-alive.db Create project. 2 months ago
config.js Create project. 2 months ago
homepage.html Create project. 2 months ago
index.js Create project. 2 months ago
init-db.sql Create project. 2 months ago
package.json Create project. 2 months ago
yarn.lock Create project. 2 months ago

README.asc

                                     _         _ _           
__ _ _ __ ___ (_) __ _| (_)_ _____
/ _` | '_ ` _ \ | | / _` | | \ \ / / _ \
| (_| | | | | | | | | | (_| | | |\ V / __/
\__,_|_| |_| |_| |_| \__,_|_|_| \_/ \___|

---

Make it easy for people to check if you are alive or not.

Requirements
============
0. sqlite3
1. NodeJS

Installation
============

$ git clone https://git.hanabi.in/acagastya/am-i-alive
$ cd am-i-alive
$ npm i -D // or yarn
$ sqlite3 am-i-alive.db -init init-db.sql

Configuration
=============

Update config.js to
0. port: specify which port to run the server.
1. auth: Authentication password.
2. name: Name by which you are known.

Usage
=====

Try running the following command to see if the tool is working fine.

$ curl -XPOST -H "Content-type: application/json" -d '{ "auth": "YOUR-PASSWORD" }' 'https://example.com/update'

Run this command periodically so others know if you are alive or not.
I have placed the command in my .zshrc.
I use my terminal a lot, and therefore it updates my status regularly.
I have also provided homepage.html. Update the password and the URL, and point your web-browser's "New Tab" to that webpage.

People who want to know your status can run the following command to check on you.

$ curl -XGET 'https://example.com/'

If someone who wants to know about you is not user to cUrl, they can still open the URL to see the message.

Sure, the message is not as pretty.
But it should not take much time to set up a front-end to this.

This is a very minimal tool under a free license. Tweak it to your liking.