Skip to content

dierickd/orleans-php-2003-project-easterapp

 
 

Repository files navigation

Easter App

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.

Getting Started

Prerequisites

  1. Check composer is installed
  2. Check yarn & node are installed

Install

  1. Clone this project

  2. Run composer install

  3. Run yarn install

  4. Set the database url into the env.local file
    DATABASE_URL=mysql://databaseUserName:databaseUserPassword@databaseServerIpAdress:databaseServerPort/databaseName

  5. 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*

  6. Make the database and tables
    bin/console doctrine:database:create bin/console doctrine:schema:update --force

  7. 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');

  1. Create the first user php bin/console doctrine:fixtures:load --group=UserFixtures --append

  2. Change your admin login and password The initial administrator account is [email protected] with password adminpassword. Make sure to change them to prevent anyone to access your data

  3. If needed, you can fill the database with fake records for testing purpose. bin/console doctrine:fixture:load

Installation troubleshooting

missing extension

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.

php version

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.

Working

  1. Run symfony server:start to launch your local php web server
  2. Run yarn run dev --watch to launch your local server for assets

Testing

  1. Run ./bin/phpcs to launch PHP code sniffer
  2. Run ./bin/phpstan analyse src --level max to launch PHPStan
  3. Run ./bin/phpmd src text phpmd.xml to launch PHP Mess Detector
  4. Run ./bin/eslint assets/js to launch ESLint JS linter
  5. Run ./bin/sass-lint -c sass-linter.yml to launch Sass-lint SASS/CSS linter

Built With

Versioning

Authors

Wild Code School trainers team

Adrien MAILLARD
Benoît CHOCOT
Anthony ROSSIGNOL
Dewi DIERICK

License

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.

Acknowledgments

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 48.8%
  • PHP 40.5%
  • CSS 7.5%
  • JavaScript 2.2%
  • Other 1.0%