This backend is first of all not meant to be secure and can be easily abused to modify other user's their handling profiles. Keep this in mind and you'd be best to introduce some kind of password authentication on the endpoint that gives out session tokens.
This backend is used in private on my GTA V menu to share handling profiles with my friends.
git clone https://github.com/Yimura/GTA5-Backend.git
cd GTA5-Backend
Open data/auth.js
:
{
"credentials": {
"mongodb": {
"dev": {
"auth": {
"user": "db_user",
"password": "password",
"host": "example.com",
"database": "yimmenu"
},
"options": {
"useNewUrlParser": true,
"useUnifiedTopology": true,
"useFindAndModify": false,
"useCreateIndex": true
}
},
"prod": {
"auth": {
"user": "db_user",
"password": "password",
"host": "example.com",
"database": "yimmenu"
},
"options": {
"useNewUrlParser": true,
"useUnifiedTopology": true,
"useFindAndModify": false,
"useCreateIndex": true
}
}
}
}
}
docker-compose up --build
Have NodeJS (v14+) installed
npm install
node --experimental-loader=./util/loader.js .
None available currently, open an issue if you wish for me to add this.