summaryrefslogtreecommitdiff
path: root/public/docs/install.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-23 13:48:07 +0200
committerTor Andersson <tor@ccxvii.net>2024-07-23 13:48:10 +0200
commitc52ca4b709a8752d870a9123b46cfd3764c608a7 (patch)
treee18ffd7959a22711929a4f385c0d702b66a58d5f /public/docs/install.html
parent611b9aa100d1135f04cde572115a5ea1f680ad72 (diff)
downloadserver-c52ca4b709a8752d870a9123b46cfd3764c608a7.tar.gz
Start adding developer documentation.
Diffstat (limited to 'public/docs/install.html')
-rw-r--r--public/docs/install.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/public/docs/install.html b/public/docs/install.html
new file mode 100644
index 0000000..a448db8
--- /dev/null
+++ b/public/docs/install.html
@@ -0,0 +1,82 @@
+<!doctype html>
+<title>RTT: Getting Started</title>
+<link rel="stylesheet" href="style.css">
+<body>
+<article>
+
+<h1>
+Getting Started
+</h1>
+
+<p>
+The <i>Rally the Troops</i> software is very simple and has minimal dependencies.
+All the data is stored in a single SQLite3 database.
+The server runs in a single Node process using the Express.js framework.
+
+<p>
+To run an RTT server instance, you will need
+the <a href="https://www.sqlite.org/index.html">sqlite3</a> command line tool
+and
+<a href="https://nodejs.org/en">Node</a>.
+
+<h2>
+Install the server
+</h2>
+
+<p>
+Check out the server repository.
+
+<pre>
+git clone https://git.rally-the-troops.com/common/server
+</pre>
+
+<p>
+In the cloned server directory, install the NPM dependencies:
+
+<pre>
+npm install
+</pre>
+
+<p>
+Initialize the database:
+
+<pre>
+sqlite3 db &lt; schema.sql
+</pre>
+
+<h2>
+Install the modules
+</h2>
+
+<p>
+Game modules are found in the "public" directory.
+They also need to be registered in the database.
+
+<p>
+Check out a game module:
+
+<pre>
+git clone https://git.rally-the-troops.com/modules/field-cloth-gold public/field-cloth-gold
+</pre>
+
+<p>
+Register it in the database:
+
+<pre>
+sqlite3 db &lt; public/field-cloth-gold/title.sql
+</pre>
+
+<h2>
+Start the server
+</h2>
+
+<pre>
+node server.js
+</pre>
+
+<p>
+Open the browser to <a href="http://localhost:8080/">http://localhost:8080/</a> and create an account.
+
+<p>
+The first account created will have administrator privileges.
+