Offerista-Demo
A basic symfony app that satisfies the Task Requirements
Task requirements
- Set up a Symfony 4/5 project
- Define one route that:
- loads some random data from a REST API, i.e. https://jsonplaceholder.typicode.com/
- displays the data using a Twig template
- uses only Symfony components
- Implement a JavaScript based solution that:
- lazy loads some random data after the first user interaction
- adds that data to the already existing data
- uses latest JavaScript features
- is embedded in the Symfony app
- Put the app in a reasonable Docker image
- The app should be available on port 80
- The code should be unit tested
- The app should support current browsers
- Styling is not important
Docker Repo
Offerista-Demo-Docker
Getting Started for local use
- Make sure you have all the Prerequisites.
git pull https://github.com/njm222/Offerista-Demo.git
cd ./Offerista-Demo
composer install
yarn encore dev
symfony server:start
- Visit
localhost:8000
in a browser
Testing
-
cd
to the root directory
-
php bin/phpunit
to run all tests
Prerequisites
Requirements are php, symfony, composer, npm and yarn
Built With
Authors