DocSystem is a document sharing and hosting service powered by SvelteKit and BunJS.
The only current "official" instance is doc.spamix.se
git clone https://github.com/SpamixOfficial/docsystem.git
BunJS
MariaDB
PM2
Install these dependencies before proceeding further in this tutorial
Now, set up a new MariaDB database.
Here's an example of how I would do it (including creating a new user)
$> sudo mariadb -u root -p
...
...
MariaDB [(none)]> CREATE USER 'SomeUser'@'localhost' IDENTIFIED BY 'VerySecurePassword1234';
MariaDB [(none)]> CREATE DATABASE docsystem;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON docsystem.* TO 'SomeUser'@'localhost';
MariaDB [(none)]> exit;
Cd into the new directory, and install all project dependencies
$> cd docsystem && bun install
dbhost=127.0.0.1
dbuser=SomeUser
dbpass=VerySecuredPassword1234
dbname=docsystem
master_password="MASTER_PASSWORD_1234"
The master password is the password you'll use to identify yourself when doing administrative actions. Choose wisely!
$> bun run drizzle:generate && bun run drizzle:migrate
$> bun run build
$> bun run pm2deploy
You should now have a server running on port 3000! How you want to expose this to the world is up to you.
A recommendation for managing the database is cloudbeaver. In the repository I've included a cloudbeaver docker compose file you can use to easily get cloudbeaver up and running.
Have fun, and if you find bugs please notify me and/or commit a fix for them!
Every inch of help is appreciated :-)