aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..72efcdc
--- /dev/null
+++ b/README.md
@@ -0,0 +1,50 @@
+# mdrd
+
+Simple CGI Markdown renderer.
+
+## Building
+
+Requirements:
+
+* cmark
+
+* fcgi
+
+* cmake
+
+* pkgconfig
+
+```shell
+$ mkdir cmake-build-release/
+$ cd cmake-build-release/
+$ cmake -DCMAKE_BUILD_TYPE=Release ..
+$ make -j mdrd
+```
+
+## Running
+
+Start a FCGI parent process:
+
+```shell
+$ spawn-fcgi -p 8080 -n ./mdrd
+```
+
+Setup your web server with document root, fastcgi parameters and fastcgi port. Nginx example:
+
+```
+server {
+ root /path/to/markdown/root;
+ autoindex on;
+ index index.html index.md;
+ location ~ \.md$ {
+ include fastcgi_params;
+ fastcgi_pass 127.0.0.1:8080;
+ }
+}
+```
+
+You are ready to go.
+
+## License
+
+WTFPL. Experimental project. No warranty.