Giter VIP home page Giter VIP logo

yata's Introduction

Commit activity Last commit Discord

YATA: Yet Another Torn App

Helper website for the text-based online RPG Torn City https://www.torn.com/ The website is hosted here: https://yata.yt/

Local Setup Instructions

Setup guide

git clone https://github.com/Kivou-2000607/yata.git

cd yata

pip install -U pip

pip install -r requirements.txt

Create a local .env file

###### REQUIRED ######
DEBUG=True
SECRET_KEY="xxx"
ALLOWED_HOSTS="*"

# Database selection
DATABASE=sqlite
#DATABASE=postgresql
#PG_NAME=yata
#PG_USER=username
#PG_PASSWORD=password
#PG_HOST=localhost
#PG_PORT=5432
#PG_CONN_MAX_AGE=600

###### OPTIONAL ######
# Your TORN API KEY (only needed for the setup phase)
APIKEY="API KEY HERE"
# For most leaving this as default should be fine, but if you have any issues with -4 cache responses you may wish to increase this gradually
CACHE_RESPONSE=10

# The amount of chain report crontabs to run when running crons manually via python ./cron/dev_cron.py
CHAIN_REPORT = 1

# The amount of attack report crontabs to run when running crons manually via python ./cron/dev_cron.py
ATTACK_REPORT = 1

# The amount of revive report crontabs to run when running crons manually via python ./cron/dev_cron.py
REVIVE_REPORT = 1

# REDIS
#USE_REDIS=True
#REDIS_HOST="redis://178.62.1.116:6379/1"
#REDIS_PASSWORD="xxx"

# SENTRY
# Sentry for error capture
ENABLE_SENTRY=False
#SENTRY_DSN=YOURDSN
#SENTRY_ENVIRONMENT=dev
#SENTRY_SAMPLE_RATE=1.0

Then run setup.py to initalise everything

python setup.py

Running YATA

To emulate cron activity ./cron/dev_cron.py can be run as a seperate process. Cron jobs designed to run on a per minute basis will be run as such. Cron's with a longer delay will run on a 30 minute schedule.

python ./cron/dev_cron.py

See an example of a production crontab

cat ./cron/crontab.txt

To launch the application simple start the Django Application

python manage.py runserver

The admin interface can be accessed via

http://127.0.0.1:8000/admin
Username: admin
Password: adminpass

Bazaar Default Items

By default the most commonly traded items are set to appear in https://yata.yt/bazaar/default/. This list can be adjusted.

1. Logon To the Admin Section
2. Go to the Items table
3. Select the item you wish to add
4. Enable the flag "OnMarket"
5. Save

yata's People

Contributors

kivou-2000607 avatar ate-it avatar wseng avatar helcostr avatar totallynot avatar oranweb avatar kib avatar dependabot[bot] avatar wootty2000 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.