Coder Social home page Coder Social logo

thatohio / mpc-autofill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chilli-axe/mpc-autofill

0.0 0.0 0.0 3.7 MB

Automating MakePlayingCards's online ordering system

License: GNU General Public License v3.0

Python 54.19% CSS 1.66% JavaScript 23.85% HTML 20.30%

mpc-autofill's Introduction

mpc-autofill

Automating MakePlayingCards's online ordering system.

The below guide describes the procedure for setting up the web component. If you're here to download the clientside program, check the Releases tab.

Requirements

requirements.txt for the web application and local tool combined exists in the repo as well.

Web application:

JS libraries:

Other:

Setup

  1. Clone this repo somewhere on your server
  2. In the same directory as the repo, create a folder called staticroot for static assets
  3. Deploy the Django project (I'm using DigitalOcean for Ubuntu) with a webserver (I'm using Apache) and serve static files with another webserver if you want (I was previously using nginx but now I just serve static files with Apache as well)
  4. Run Elasticsearch
  5. Set up your Google Drive credentials in the MPCAutofill directory (base Django directory). You should set up a Google Drive service account and store your credentials as client_secrets.json
  6. Run the command manage.py import_sources to sync sources in drives.csv to database, and manage.py update_database to populate the database (optionally specifying a particular drive to sync with -d <drivename>)
  7. Create a cronjob to periodically run the database updater command, to ensure MPC Autofill reflects the current state of the linked Drives, and another cronjob to periodically synchronise the double-faced cards table with Scryfall:
  • 0 0 * * * bash /root/mpc-autofill/update_database >> /root/db_update.txt 2>&1
  • 0 0 * * SUN bash /root/mpc-autofill/sync_dfcs
  1. Deploy two Google Script according to the code specified in autofill.py and adjust the URLs in that script to point to your GS endpoints

mpc-autofill's People

Contributors

ndepaola avatar bertranddungan avatar fklemme avatar dependabot[bot] avatar candyapplecorn avatar chilli-axe 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.