For our public facing application, we want to build a calculator based on emojis. As a proof of concept, you need to build the app to support the initial set of calculations:
π½ Addition (Alien U+1F47D)
π Subtraction (Skull U+1F480)
π» Multiplication (Ghost U+1F47B)
π± Division (Scream U+1F631)
Acceptance criteria When I view the website And I want to calculate 1 - Alien - 1 Then I should receive the response 2
When I view the website And I want to calculate 10 - Skull - 5 Then I should receive the response 5
When I view the website And I want to calculate 2 β Ghost - 2 Then I should receive the response 4
When I view the website And I want to calculate 2 β Scream - 2 Then I should receive the response 1
Additional details β Use symphony/laravel or plain PHP programming language β Use React or jQuery library β You MUST include a readme file explaining your approach and steps required to run your app. β A minimum UI should include a form with two text fields for operands and a dropdown list for the operator. β The answer should be calculated server-side and returned via JSON over HTTP protocol. β You may choose different symbols ο
-
clone in to your desire folder
-
cd $DIRECTORY
-
docker run --rm
-u "$(id -u):$(id -g)"
-v $(pwd):/var/www/html
-w /var/www/html
laravelsail/php81-composer:latest
composer install --ignore-platform-reqs -
cp .env.example .env
-
./vendor/bin/sail up -d
-
./vendor/bin/sail php artisan key:generate
-
open http://localhost/ in your browser you will the website
-
./vendor/bin/sail test
custom app port from .env file