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
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:
- jQuery - http://jquery.com/
- Bootstrap - http://getbootstrap.com/
- Underscore.js - http://underscorejs.org/
- SweetAlert - http://t4t5.github.io/sweetalert/
- SteamAuthentication - https://github.com/SmItH197/SteamAuthentication
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#.
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:
- Lines 5, 6, and 7 of default.php
- Line 14 of settings.php
- Line 30 of support-ticket.php
- Line 6 of bot-withdraw.php. For this, you will need to enter the 64bit ID of your Steam bot. You can find this in the bot's profile url, or on websites such as http://steamrep.com.
- Lines 44 and 92 of index.html, line 96 of support.html, line 82 of donations.html, and line 148 of prices.html. Here, you must modify the sign in url to have your own website's url. You must change where it says 'openid.return_to=' and 'openid.realm=' to be your own website's url.
- Line 149 of script.js. Here, you must put in the trade url of your own bot.
- 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"}
- If you are trying to get this website set up and encounter any errors, please add TheAnthonyNL on Steam, and leave a comment on his profile, saying that you need help setting up this project. 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.
- Please DO NOT add me on Steam, add Anthony. I apologize, but I am too busy as it is with school and my own site to help troubleshoot other peoples' sites.
- 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
Please read CONTRIBUTING.md.
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.