A company in the audiovisual sector has asked us for a web application that will allow their employees to quickly find movies from a large database they have, since the process is currently done manually.
You will be in charge of setting up the core of the application: all the logic of filtering and sorting of movies. You have 2 weeks to finish, which is how long this sprint lasts.
- Clone this repo
$ git clone https://github.com/itacademyReact/starter-code-sprint4.git
- Unlink your repo from the itacademy repository
$ git remote rm origin
- Link your repo to the repository you have to create in your github account
$ git remote add origin <your repo name!>
- Upon completion, run the following commands:
$ git add .
$ git commit -m "Sprint Solution"
$ git push origin master
-
Create Pull Request.
-
Upload the link to the virtual campus so that your mentor can correct it and give you feedback.
The statement of the exercise is available on the virtual campus.
$ npm install
$ npm run test:watch
And last, open the generated test-results.html
file with the "Live Server" VSCode extension to see test results.
Apart from the statement, you will know exactly what you are asked to do by looking at the file tests/films.spec.js
, all tests are already defined here!
You have the following indications from the frontend responsible:
-
It is mandatory to implement all loops in ES6 (using map, reduce, filter and sort to manipulate arrays).
-
As at the moment we don't consume data from a server using an API, we will work with data from the src/data.js archive. For the moment we will implement the logic using an array of information about 250 movies.
-
The implementation is about processing this array of movies, to display it as requested in each exercise.
-
The logic to implement will be placed in the src/films.js file.
-
You don't need to show the result of each function on the screen. Your goal is to pass the tests. More information on how to program oriented to pass tests at the end of the document.
-
Don't forget to include the capture of the test results in the virtual campus.