A messaging web app using Websocket technology
Mostly realised during the end of my CFC
You can access the wiki here!
80
and 443
ports must be open on your network.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
then mysql_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