Welcome to TheMovieApp, Search movies by name, year, language, genre and/or ratings. Use our intuitive filters to find your movies.
- Technologies and Libraries Used
- Prerequisites
- How To Get Started
- Project Structure
- Available Scripts
- Contributors
- React
- Jest for testing
- Sass & SCSS for styling
- Open the browser and go to
https://www.themoviedb.org/signup
. - Register for an account and request for an API Key.
- Clone project
git clone git@github.com:ssewilliam/theMovieApp.git
- Navigate to root directory.
- Create a .env file following the .env.example file
- Replace the value for
REACT_APP_API_KEY
with your own API Key from step 2
- Download and install Node.js atleast 16.9.1 on your machine
- Build dependencies using
npm i
oryarn
if you have yarn installed - Set up respective environment variables in your
.env
file in your root directory. - Run the project using
npm start
oryarn start
To run the tests use this command: npm run test
The folder structure looks something like this:
src
|-- components
| |-- accordionFilter
| |-- checkbox
| |-- movieitem
| |-- movielist
| |-- searchbar
| |-- searchfilter
| |-- sidenavbar
|-- css
| |-- base
|-- images
|-- pages
| |-- discover
For styling we will use Sass and styled componentss,
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Launches the prettier runner to run code farmat checks on the codebase.
Running npm prettier:fix
starts the runner with autowrite mode turned on to autoformat fixable styles
running prettier.
Launches the eslint runner to run eslint checks on the codebase.
Running npm lint:fix
starts the runner with autofix mode turned on to autofix fixable rules
running eslint.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
- ✔️ Style the component and checkmark to look like the mockup provided
- ✔️ Complete the MovieItem component
- ✔️ Complete the "AccordionFilter" component and re-use it for all filter categories
- ✔️ Write the necessary functions to open and close the sidebar
- ✔️ Implement a hamburger icon that controls the open state of the sidebar.
- ✔️ Preload and set the popular movies and movie genres when page loads
- ✔️ Update search results based on the keyword and year inputs
- ✔️ All of your API requests should be in this file