Coder Social home page Coder Social logo

netrunnerdb's Introduction

Quick notes for installation

  • Create a database in MySQL, in utf8_general_ci
  • Create a directory on your hard drive, we'll assume it's at $SYMFONY
  • Go in it cd $SYMFONY
  • Fork the repo and clone it in $SYMFONY: git clone https://github.com/yourname/netrunnerdb
  • This creates a directory named netrunnerdb in $SYMFONY. Let's say DOCROOT=$SYMFONY/netrunnerdb.
  • Go into it.
  • Install Composer: curl -s http://getcomposer.org/installer | php
  • Install the vendor libs: php composer.phar install ; at the end of the install, you'll be asked for your database information
  • Configure your local webserver with a DocumentRoot pointing to $DOCROOT (vhost probably)
  • Create the tables: php app/console doctrine:schema:update --force
  • If the above command fails, edit app/config/parameters.yml and try again
  • Import the data from the latest netrunnerdb-*.sql.gz into MySQL
  • 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

Add cards

  • login as ROLE_ADMIN (edit your user) or edit app/config/security.yml
  • go to /admin/card, /admin/pack, /admin/cycle, etc.

Misc Notes

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

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.