A messaging web app using Websocket technology
Mostly realised during the end of my CFC
You can access the wiki here!
- Any server running a debian-like OS
- The
80
and443
ports must be open on your network.
- mariadb
- uuid
- websocket
- mime
- querystring
For theses steps, we will assume that the git directory has already been cloned into the server.
-
Install nodeJS
apt-get install nodejs
-
Install MariaDB
apt-get install mariadb-server
thenmysql_secure_installation
-
Execute the sql script found in
/server_resources/sql_scripts/db_creation.sql
-
Add a mariadb user and give him editing permissions on the created database. Here is a nice tutorial: https://tableplus.io/blog/2018/09/mariadb-how-to-create-new-user-and-grant-privileges.html
-
Copy the
server_resources/config.js.example
into/server_resources/config.js
and fill your db credentials in it -
Install the dependencies in the server_resources directory:
cd server_resources && npm i
-
To start the website you must start the two servers with
node /server_resources/app_start.js