Skip to content

Commit 3373fae

Browse files
committed
add news posting
1 parent 04bd7d0 commit 3373fae

File tree

9 files changed

+5464
-6
lines changed

9 files changed

+5464
-6
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ player storage, friend communication, etc. jagex refered to theirs as the
44
loginserver. this server uses [JSON](https://www.npmjs.com/package/json-socket)
55
to communicate with rsc-server over TCP or UNIX file sockets for IPC.
66

7+
features:
8+
* [sqlite database backend](https://sqlite.org/whentouse.html#serversidedb)
9+
utilizing [better-sqlite3](https://github.com/JoshuaWise/better-sqlite3)
10+
with 100% prepared queries for incredible performance and ACID-compliant
11+
transactions with no DBMS setup required
12+
* simplified table schema with no unnecessary JOINs and utilization of
13+
[sqlite's native json support](https://www.sqlite.org/json1.html) when
14+
appropriate
15+
* multiple world support. connect more than one instance of
16+
[rsc-server](https://github.com/2003scape/rsc-server) with different world IDs
17+
for cross-world player private messaging
18+
* automatic hiscore rank updating with the ability to immediately fetch and
19+
compare player skill ranks on the fly
20+
* time-throttled logins with secure, bcrypt password storage and automatic
21+
re-hashing upon `config.passwordHash` modification
22+
723
## install
824

925
# npm install @2003scape/rsc-data-server # -g for the CLI program

create-tables.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ CREATE TABLE IF NOT EXISTS `news` (
138138
`body` TEXT
139139
);
140140

141+
CREATE TABLE IF NOT EXISTS `god_letters` (
142+
`id` integer not null primary key autoincrement,
143+
`date` datetime default (strftime('%s', 'now')),
144+
`title` varchar(255),
145+
`body` TEXT
146+
);
147+
141148
CREATE TABLE IF NOT EXISTS `uploads` (
142149
`id` integer not null primary key autoincrement,
143150
`name` varchar(255),

letters-archive.sql

Lines changed: 2598 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)