An open API service indexing awesome lists of open source software.

https://github.com/eduhcastro/trade-items

A User X User item exchange system.
https://github.com/eduhcastro/trade-items

expressjs items javascript nodejs trade websocket

Last synced: 9 months ago
JSON representation

A User X User item exchange system.

Awesome Lists containing this project

README

          





Logo

Trade Items


An item exchange system using LowDB and Socket.io


## How to use :rocket:

The System does not exist login, you can access the trade using 2 parameters
```sh
http://yourdomain.com/trade?session=yKgyjt3jp6WT5ZQvUGWSvJmnCMu8c9r2&user=skillerm22
```

### Details

1. session: It would be the session url, you can see/add the sessions in (Session-PB.json) file
2. 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)🎮
```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]
}...
```

## Test 🎮

You can test the system online.

User 1: https://trade-castroms.herokuapp.com/trade?session=yKgyjt3jp6WT5ZQvUGWSvJmnCMu8c9r2&user=eduhcastro19

User 2: https://trade-castroms.herokuapp.com/trade?session=yKgyjt3jp6WT5ZQvUGWSvJmnCMu8c9r2&user=skillerm22

Preview: https://www.youtube.com/watch?v=Qt3DMaXTAH0

## Contributing
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**.

## License

Distributed under the MIT License. See `LICENSE` for more information.

## Contact

Eduardo Castro - [Facebook](https://www.facebook.com/eduhcm)
CastroMS#3430 - [Discord]