Coder Social home page Coder Social logo

trade-items's Introduction


Logo

Trade Items

An item exchange system using LowDB and Socket.io

How to use ๐Ÿš€

The System does not exist login, you can access the trade using 2 parameters

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)๐ŸŽฎ

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 CastroMS#8830 - [Discord]

trade-items's People

Contributors

eduhcastro avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.