An item exchange system using LowDB and Socket.io
The System does not exist login, you can access the trade using 2 parameters
http://yourdomain.com/trade?session=yKgyjt3jp6WT5ZQvUGWSvJmnCMu8c9r2&user=skillerm22
- session: It would be the session url, you can see/add the sessions in (Session-PB.json) file
- user: user that will be used in the session, you can see/add users in the (Users-PB.json) file
Alert: Change the url to the url the system will run on. File (Socket.js)🎮
module.exports = function(io, chalk, Getting, ClassPB) {
io.sockets.on('connect', function(socket) {
var Stringg = socket.handshake.headers.referer
try {
var Sessao = Stringg.split("https://trade-castroms.herokuapp.com/trade?session=")
var Splitado = Sessao[1].split("&user=")
var SessaoCorreta = Splitado[0]
var UsuarioCorreto = Splitado[1]
} catch (e) {
var Sessao = Stringg.split("https://trade-castroms.herokuapp.com/trade?user=")
var Splitado = Sessao[1].split("&session=")
var SessaoCorreta = Splitado[1]
var UsuarioCorreto = Splitado[0]
}...
You can test the system online.
User 2: https://trade-castroms.herokuapp.com/trade?session=yKgyjt3jp6WT5ZQvUGWSvJmnCMu8c9r2&user=skillerm22
Preview: https://www.youtube.com/watch?v=Qt3DMaXTAH0
This project is free, and any contribution is welcome.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
Distributed under the MIT License. See LICENSE
for more information.
Eduardo Castro - Facebook CastroMS#3430 - [Discord]