Giter VIP home page Giter VIP logo

dtdb's Introduction

Quick notes for installation

  • Go into the directory where your server will reside
  • Fork the repo and clone it: git clone https://[email protected]/yourname/dtdb.git
  • This creates a directory named dtdb. This has to be your apache DOCROOT.
  • Go into it.
  • Install Composer: curl -s http://getcomposer.org/installer | php
  • Install the vendor libs: php composer.phar install
  • Create the database: php app/console doctrine:database:create
  • Create the tables: php app/console doctrine:schema:update --force
  • If the above command fails, edit app/config/parameters.yml and try again
  • execute php app/console assets:install --symlink
  • Import the data: mysql -u root -p dtdb< dtdb-cards.sql
  • Configure your web server with the correct DocRoot
  • Point your browser to /web/app_dev.php

Quick notes for update

When you update your repository, run the following commands:

  • php composer.phar self-update
  • php composer.phar update
  • php app/console doctrine:schema:update --force
  • php app/console cache:clear --env=dev

Deck of the Week

To update the deck of the week on the front page:

  • php app/console highlight

Setup an admin account

  • register
  • if you haven't setup mail delivery, manually activate your account
  • run php app/console fos:user:promote --super <username>

Add cards

  • login with admin-level account
  • go to /admin/card, /admin/pack, /admin/cycle, etc.

Add cards with Excel on existing pack

  • note the code of the pack (ntnr for New Town New Rules, etc.). let's say it's xxx
  • login with admin-level account
  • go to /api/set/xxx.xls
  • open the downloaded file and add your cards
  • go to /admin/excel/form and upload your file, click 'Validate' on confirmation screen
  • actually the excel file can be the one from another pack, just replace the 2nd column

Misc Notes

  • your php module must be configured with mbstring.internal_encoding = UTF-8

dtdb's People

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.