Red engine is the backend for the Videogame Media Project
Node.js version 24.7.0 or more with these extra modules
"bcrypt": "^6.0.0",
"cors": "^2.8.5",
"debug": "~2.6.9",
"dotenv": "^17.2.3",
"express": "^4.21.2",
"jsonwebtoken": "^9.0.2",
"mysql2": "^3.15.3"
- Prepare a MariaDB database (the project uses MARIADB specific functions).
- Create an empty database
- Run the SQL script provided (
/script.sql). It will create necessary tables and populate DB. - Create a
/.envfile with the provided template. Default values are given to make an example - consider to change them.
SECRET=BadSecretKey4Jwt
DB_PASSWORD=secret
DB_USER=root
DB_NAME=awp_vgm
HOST=localhost
SALT_ROUNDS=10
PORT=3000- Clone the repo :
git clone https://github.com/Emprario/red-engine.git - Go to repo directory
- Run as dev (enable debugging):
- Linux/MacOS:
npm run devel - Windows (require powershell script enabled):
npm run win
- Linux/MacOS:
- Run for production (no debugging logs):
npm run start