Giter Site home page Giter Site logo

vgoswap-site's Introduction

vgoswap-site

vgoswap-site is the source code for the popular key exchange site https://VGOSwap.net.

Setup

First, make sure you have node.js installed, which you can do here: https://nodejs.org/

Config

$ open config/config.js

All the config stuff is commented nicely, and you shouldn't have too much bother with it. I'll run through some important things here:

api.steam

The returnUrl value should stay the same if running locally. Make sure to include the port if it's not 80 or 443.

returnUrl: 'http://localhost/auth/steam/return'
// Becomes
returnUrl: 'http://382.73.93.763:4073/auth/steam/return'

You can find your Steam API Key for the steamApiKey value here: https://steamcommunity.com/dev/apikey

api.opskins

You can find your OPSkins API key on the OPSkins website in your advanced options of your account.

To access the secret, you need to setup 2FA on your account with a program that supports secret exports.

You can find one for Chrome here: https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai.

The opskinsTradeApiKey and opskinsTradeSecret values are used for the account sending the bot trades.

The opskinsBalanceApiKey is the account used for sending funds for remaining balance. This should probably be your main, with payments etc. all setup.

steamBot

This object is fairly self-explanatory, you can reference this video to get your shared and secret values: https://www.youtube.com/watch?v=wPV5V0BINUw

database

I'll explain how to setup the database further down, but you should name the schema vgoswap. Make sure the password is your mysql database password. The host, user and port values are fairly standard so don't change them unless you've customised your database settings.

Database setup

You need to have a MYSQL database running on your machine. I recommend using MYSQL Workbench also.

MYSQL noobies can find some help here: https://www.youtube.com/watch?v=aY6LiTbfckA

Import the database file from the sql folder. Your schema should be named the same thing as you set in config.

Run the site

Use CMD/Terminal to go to the site's root directory:

$ cd /Users/Almatrass/Desktop/vgoswap-site-master

Install modules:

$ npm i

You'll need the gulp-cli package, install it globally:

$ npm i -g gulp-cli

Run gulp tasks: (minify css and obfuscate, then minify javascript):

$ gulp

Now you can start the server:

$ npm start

Or forever with PM2:

$ pm2 start ./server/vgoswap-server.js

Support

Please open an issue here if you would like support. I get too many friend requests for general programming questions, please direct those to stack overflow, and specific questions to issues. Thanks!

vgoswap-site's People

Contributors

almatrass avatar

Stargazers

 avatar  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.