Giter Club home page Giter Club logo

thiccgaming's Introduction

ThiccGaming.com

This is the source code to the ThiccGaming web app.

This stack includes: Docker-compose, Django, Sentry, reCAPTCHA, Nginx, SteamCMD, MySQL (Instead of PostgreSQL because I can integrate with game servers much easier,) Docker, Docker-compose, AWS S3, and AWS SES.

Installation

Docker-compose makes the deployment for this very automatited and easy. There is no need to manually create a virtual environment with mkvirtualenv thicc, because the build spec of the site dockerfile automates that.

  1. Copy mysql/environment.env.example to environment.env and fill it out with your variables.

  2. Repeat this step for site/environment.env.example and use the same info from mysql MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE into site's DB_USER, DB_PASSWORD, and DB_NAME.

  3. Create a file called spamdomains.txt in the main project directory which is a file that is made of all domains which you do not want to be allowed to be registered on the website with, each taking up its own line in the file. Each domain must have its top-level domain attached to it. For example:

    derp.com
    herp.org
    foo.net
    bar.ai
    slurp.mail.com
    test.com
    etcetera.com
    

    Search 'spam domain text files' on google to find great templates.

  4. Docker time!

  • Install Docker and Docker-compose. Run docker-compose run django python manage.py migrate from the main folder. docker-compose creates a volume on the host machine so this only needs to be run once instead of everytime we start the django container. This will also need to be run again every time you create new migrations when you run docker-compose run django python manage.py makemigrations.

  • create local directories for your docker volumes to mount to; providing two-way writing ability, to and from the container.

    • sudo mkdir -p /data/teamspeak3-docker
    • sudo mkdir /data/mysql-l4dstats-docker
    • sudo mkdir /data/mysql-site-docker
  • Run docker-compose up from the main folder.

  1. Visit http://localhost/ and notice how there is no port specified on that url. Docker-compose is running NginX which is listening on port 80. 80 is the default port for all http traffic so this is the same thing as saying http://localhost:80. connecting to nginx will tell nginx to point your traffic to the django app specified in the nginx/conf.d/local.conf file.

Future Plans

  • Convert to Pipenv from virtualenvs.

  • Make Thicc Bans its own package. Since it is a fully fledged custom Django ban sytem which integrates with sourcemod servers, it is the best competitor to sourcebans, and the only competitor which works with Django, removing the need to host any PHP on your stack.

  • Create a custom Stats system

thiccgaming's People

Contributors

aldenjenkins avatar

Watchers

James Cloos 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.