Web catalogue of LEGO® parts for 3D printing
A Symfony project
You can check if your system meets requirements by running $ bin/symfony_requirements
For full requirements see Symfony 3.3 docs.
Elasticsearch >= 5
Instructions for installing and deploying Elasticsearch may be found here.
$ composer install
$ npm install
$ bower install
$ gulp default [--env production]
$ bin/console doctrine:database:create
$ bin/console doctrine:schema:create
$ bin/console doctrine:fixtures:load
You can load initial application data by running command $ bin/console app:init
This command consists of multiple subcommands that can be called separately:
$ bin/console app:load:ldraw [--ldraw=PATH] [--all] [--file=FILE] [--update]
$ bin/console app:load:rebrickable
$ bin/console app:load:relations
$ bin/console app:load:images [--color=INT] [--rebrickable] [--missing]
$ bin/console fos:elastica:populate
Relations between LDraw models and Rebrickable parts are matched automatically by identical (or similar) id/name when executing command $ bin/console app:load:relation
.
Unmatched relations can be specified by adding relation of IDs to app/Resources/relations/part_model.yml
The test database must be created before the first test runs. You can create new one by running:
$ bin/console doctrine:database:create --env=test
$ bin/console doctrine:schema:create --env=test
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.