Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 5.67 KB

README.md

File metadata and controls

48 lines (39 loc) · 5.67 KB

CSGO Win Big

What is this?

CSGO Win Big is a Counter-Strike: Global Offensive jackpot skin betting website, created by me, Jordan Turley. It is hosted through Bluehost at http://www.csgowinbig.com

How does CSGO Win Big work?

This is the repository for the website for CSGO Win Big. It is written in HTML/CSS/JavaScript for the client-side, and PHP for the server-side.
We are also making use of the following libraries/frameworks:

In addition to the website, we are also making use of a custom version of Jessecar96's Steam Bot, which can be found here, and is written in C#.

How to setup this project for my own use?

If you would like to setup this project for your own project, there are a couple of steps you must follow:

  • In src/php/default.php, you must configure your own database credentials. The way I have it setup is I have a file outside of the web root with my passwords in it, called 'passwords.txt', which I read and get the password for the database from, instead of writing my password directly in the code. Then, import database-config.sql to your MySQL database. If you want to use a database other than MySQL, you will have to set it up on your own.
  • Also, because you login through Steam for this site, you must have a Steam API Key. You can request a key for yourself here. Like the database password, I also have this key stored outside of the web root in passwords.txt.
  • You will also have to put in your own website url and database stuff in some places, instead of mine. These places are:
  • One last thing, the site assumes that there will always be chat messages, so you have to manually insert one chat message into the chat database table.
  • Here is an example of my passwords.txt:
    {"default-password":"YOUR DATABASE PASSWORD","steamAPIKey":"YOUR STEAM API KEY"}

Troubleshooting

  • If you are trying to get this website set up and encounter any errors, please send me an email at support@csgowinbig.com. DO NOT submit an issue, only submit an issue if there is something legitimately wrong with the code. Also, please try something on your own before messaging me, and if you cannot fix it on your own, send me an email and list off what you have tried. If you haven't tried anything, I will not respond.
  • Please DO NOT add me on Steam, just email the support email.
  • One very common error people have been getting is their site being stuck at "loading...". If this is the case, go to the /php/login-status.php file on your server, and see what it says. If it says "file not found", this means that the passwords.txt file cannot be found on your server. You may have it in the wrong location; it is supossed to be located outside of the web root, one level up from the public_html folder on your server. It is possible, however, that your hosting doesn't allow access outside of the web root, so if this is the case, you will just have to hard code in your API Key and password. To hard code in your password, follow these steps: http://pastebin.com/8ZCNq7f8

How can I contribute to this project?

Please read CONTRIBUTING.md.

How can I donate to this project?

Donations are not necessary, but are greatly appreciated and help us out a lot. There are four ways you can donate:

  • Send a trade offer here with skin donations.
  • Send actual money through PayPal here.
  • Send Bitcoin to this address: 1GqszRekcjuUTARfXiroMnPoytRJWdk66A
  • Send Dogecoin to this address: DMWd9PLkDyQqEaQnoCWHi8EFDv2biD4AcS

If you are sending skins or money through PayPal, and would like to be recognized for your donation on our donations page, please add your name to the trade offer message or field on PayPal.