1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-16 12:20:09 -07:00
2017-05-28 23:40:46 +02:00
2017-05-28 19:35:28 +02:00
2017-05-28 20:05:49 +02:00
2017-05-28 23:40:46 +02:00
2017-05-17 20:17:14 +02:00
2017-05-17 20:17:14 +02:00
2017-05-18 00:48:27 +02:00
2017-01-17 12:17:24 +01:00
2017-05-18 16:34:38 +02:00
2017-05-28 19:23:34 +02:00
2017-05-18 00:48:27 +02:00
2017-04-18 18:28:40 +02:00
2017-04-10 17:00:37 +02:00
2016-11-04 00:54:26 +01:00
2017-05-28 19:36:00 +02:00

# Website for printable building kits

A Symfony project

Install

System requirements

  • PHP needs to be a minimum version of PHP 7.0
  • PHP Extensions
    • FTP
    • SOAP
    • GD
    • PDO
    • Zip
  • date.timezone setting set in php.ini

You can check if your system meets requirements by running $ bin/symfony_requirements

For full requirements see Symfony 3.2 docs.

Required

  • Elasticsearch

    Instructions for installing and deploying Elasticsearch may be found here.

  • POV-Ray

  • stl2pov source.

  • ADMesh source.

  • LDView OSMesa >= 4.2.1 source.

Installing

Back-end

  1. Make sure your system meets the application requirements
  2. Install dependencies via Composer, $ composer install

Front-end

  1. Install dependencies via npm, $ npm install
  2. Install bower dependencies via bower, $ bower install
  3. Compile assets by running Gulp, $ gulp

Initialization

Setup database
  1. Set application parameters in app/config/parameters.yml
  2. Generate an empty database by running command (if it does not yet exist) $ bin/console doctrine:database:create
  3. Create database tables/schema by running command$ bin/console doctrine:schema:create
  4. Load database fixtures $ bin/console doctrine:fixtures:load
Load data

You can load initial application data by running command $ bin/console app:init

This command consists of multiple subcommands that can be called separately:

  1. Load LDraw models into database by running commad $ bin/console app:load:models [--ldraw=PATH] [--all] [--file=FILE] [--update]
  2. Load Rebrickable data into database by running command $ bin/console app:load:rebrickable
  3. Load relations between LDraw models and Rebrickable parts by running command $ bin/console app:load:relation
  4. Download images of models from rebrickable.com $ bin/console app:load:images [--color=INT] [--rebrickable] [--missing]
  5. Populate Elastisearch index $ bin/console fos:elastica:populate

Testing

You can run complete system tests by $ phpunit. These should cover the main system functions and the functionality of calling the third-party programs that are required are needed to seamlessly retrieve the necessary application data.

Description
No description provided
Readme GPL-2.0 5.2 MiB
Languages
PHP 78.7%
Twig 15.5%
JavaScript 3.1%
SCSS 2.1%
Dockerfile 0.4%
Other 0.2%