Jaidyn Lev authored on 2018-06-14 02:22:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+Doormat
2
+=====================
3
+Doormat is a guest-counter for any website. Just call the `dm.lisp`
4
+file with a URL as it's sole argument, and it'll both add another visitor
5
+to the count & serve you the current guest-count.
6
+
7
+If you add the "?img" argument before the URL, then it'll fetch a PNG
8
+image of the guest-count: so you can put an <img> tag in your webpage
9
+with the URL to a Doormat instance, and let it handle guest-counts,
10
+even with static HTML pages!
11
+
12
+Example:
13
+<img src="https://doormat.eunichx.us/dm.lisp?img?example.com/index.html">
14
+
15
+Setup
16
+=====================
17
+
18
+Set up a MySQL database called `doormat`, and create this table:
19
+`create table entries (url text, visitors int unsigned);`