This application in a project cost evaluation application. It helps you to calculate a project cost based on the project feature and the project team experience.
You can edit up to 3 project variants to evaluate the best cost/performance solution.
Once this best solution is choosen, you can print it as a pdf document.
- Check composer is installed
- Check yarn & node are installed
-
Clone this project
-
Run
composer install
-
Run
yarn install
-
Set the database url into the env.local file
DATABASE_URL=mysql://databaseUserName:databaseUserPassword@databaseServerIpAdress:databaseServerPort/databaseName
-
Set the e-mail dsn into the env.local file (so the application can send e-mail)
MAILER_DSN=smtp://*emailAdress*:*mailboxUserPassword*@default
MAILER_FROM_ADDRESS=*emailAdress*
-
Make the database and tables
bin/console doctrine:database:create
bin/console doctrine:schema:update --force
-
Fill the quotation and application tables with needed values
You can use fixtures :
php bin/console doctrine:fixtures:load --group=QuotationFixtures --append
php bin/console doctrine:fixtures:load --group=ApplicationFixtures --append
Or you can use sql request :
INSERT INTO `application` (`id`, `name`) VALUES (1, 'Application Web'), (2, 'Application Mobile'), (3, 'Application Plateforme');
INSERT INTO `quotation` (`id`, `name`) VALUES (1, 'high'), (2, 'middle'), (3, 'low');
-
Create the first user
php bin/console doctrine:fixtures:load --group=UserFixtures --append
-
Change your admin login and password The initial administrator account is
[email protected]
with passwordadminpassword
. Make sure to change them to prevent anyone to access your data -
If needed, you can fill the database with fake records for testing purpose.
bin/console doctrine:fixture:load
Depending on your php installation, the composer install
command can trigger an error message saying that some extension are missing.
If you are using php 7.2 on Ubuntu and the message say that mbstring is missing run the following command :
sudo apt-get install php7.2-mbstring
Next continue from the step 2 of the install paragraph.
This application is made on php 7.2. It may happen that composer install
release an error message saying that composer.lock is made for php 7.3 and cannot be installed on 7.2 php version.
To install the application on php 7.2, run the following command
composer dump_autoload
Next continue from the step 2 of the install paragraph.
- Run
symfony server:start
to launch your local php web server - Run
yarn run dev --watch
to launch your local server for assets
- Run
./bin/phpcs
to launch PHP code sniffer - Run
./bin/phpstan analyse src --level max
to launch PHPStan - Run
./bin/phpmd src text phpmd.xml
to launch PHP Mess Detector - Run
./bin/eslint assets/js
to launch ESLint JS linter - Run
./bin/sass-lint -c sass-linter.yml
to launch Sass-lint SASS/CSS linter
- Symfony 4.4
- GrumPHP
- PHP_CodeSniffer
- PHPStan
- PHPMD
- ESLint
- Sass-Lint
- Travis CI
- Webpack Encore
- Dompdf
- Mjml
- Easyautocomplete
- Paginator
- Vich uploader 1.11
Wild Code School trainers team
Adrien MAILLARD
Benoît CHOCOT
Anthony ROSSIGNOL
Dewi DIERICK
MIT License
Copyright (c) 2019 [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.