Skip to content

486xtm/React-CS2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

159 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSFairTrade

Build Status GitHub stars GitHub forks GitHub license

Welcome to CSFairTrade, a full-stack application that enables users to trade, sell, and buy in-game items from CS2 (Counter-Strike 2).

📹 Demo Video

Watch the video

🛠️ Tech Stack

  • Frontend: React, Framer Motion
  • Backend: Node.js, Express.js
  • Database: MySQL
  • Real-time Communication: Socket.IO

📋 Features

  • User authentication via Steam
  • Item trading and listing
  • Steam market integration
  • User profiles

🔧 API Routes

  • /api/auth - Authentication routes
  • /api/trade - Trade-related routes
  • /api/user - User-related routes
  • /api/market - Steam market routes
  • /api/stripe - Stripe payment routes

🔄 Socket.IO Events

Emitted by Server

  • site: Sends the site configuration object to the client.
  • user: Sends the user object to the client.
  • user inv: Sends the user inventory data to the client.
  • bot inv: Sends the specified bot's inventory data to the client.
  • bots inv: Sends the inventories of all bots to the client.
  • bots floats: Sends the float values of the bots' items to the client.
  • pricelist: Sends the current pricelist to the client.
  • rates: Sends the current rates for ignore, trash, user, and bot to the client.
  • Offer status: Sends the status of the trade offer to the client.

Received by Server

  • get user inv: Fetches the user's inventory data.
  • get bot inv: Fetches the specified bot's inventory data.
  • get bots inv: Fetches the inventories of all bots.
  • get pricelist: Fetches the current pricelist.
  • get rates: Fetches the current rates.
  • get offer: Validates and processes trade offers.

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


Thank you for visiting CSFairTrade! Don't forget to ⭐ this repository if you find it useful.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors