This Web Server is built with Node.js so it's Highly Recommended to install Node.js from The Official Source Install or consider following this tutorial for extra Explaination: Tutorial
run setup_server.sh to Automatically setup The Basics
bash ./scripts/setup_server.sh
install node_modules
npm install
create folders for user Generated Content
mkdir uploads
mkdir uploads/pdfs
mkdir client/static/public
mkdir client/static/uploads
mkdir client/static/uploads/profile
add Cloud if you want (Optional)
mkdir cloud
add Environment variables
mv .env.dist .env
edit Environment variables (optional) (Recommended for Security)
nano .env
Official Site: Source
Run this Script for Automatic Setup or Stick around
bash ./scripts/ubuntu_install_db.sh
Tutorials
update Repositories (optional)
sudo apt update
sudo apt upgrade
add MongoDB to the packages
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \sudo gpg -o /etc/apt/trusted.gpg.d//mongodb-server-6.0.gpg \--dearmor
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Install MongoDB
sudo apt install mongodb-org
Enable MongoD Service
sudo systemctl start mongod
Check Status (Optional)
sudo systemctl status mongod
Automatically Launch of MongoD (Optional)
sudo systemctl enable --now mongod
now The Database Service is Install let's set it up
(This has to be done Manually) open up MongoDB Shell
Linux (All Distributions):
mongosh
Windows:
mongo
Create Database
use mydatabase;
Create Required Collections
db.createCollection('accounts');
db.createCollection('userData');
npm start
by Default The Server will listen on Port: 5500
Quick Access after Running:
Go to "bin" folder to The Control Panel of The Server