-
Notifications
You must be signed in to change notification settings - Fork 563
Frontend task - Search movie app (Gaston Colaneri) #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…e vitest for test and show basic data in the two pages
…page, create adapter, implement store and dark light mode
…age, add tests and improve code
…, add message for no result found and improve code
Search movie app
…d 404 not found error
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
- | - | JSON Web Token | ba52210 | jobs/Frontend/search-movie-app/.env | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Frontend task - Search movie app
🚀 Project overview
This is a Frontend application where the user can filter movies just typing in the input text.
When the application is loaded, the user can see some of the most popular movies. Once the user start typing, the application filter them. Additionally, a dark/light theme switch was implemented to improve the user experience.
This proyect was created using React. For styling, Styled-Component was chosen. Additionally, Vite was used because it simplifies setup and development by offering minimal configuration by default. It also integrates TanStack React Query for data retrieval and caching, Zustand for managing the application's global state, and React Router for page navigation.
🎨 Screens preview
Home search screen

Movie details screen

Dark mode enabled

Mobile style

Not found result message

API token error message

📦 Dependencies
Main dependencies
Development dependencies
🛠 How to Execute the Project locally
1️⃣ Clone the repository
The first step is cloning the repository. Then you should move to the search-movie-app. You will find it inside the path "mews-frontend-task/jobs/Frontend"
git clone https://github.com/gastoncolaneri/mews-frontend-task.git cd mews-frontend-task/jobs/Frontend/search-movie-app
2️⃣ Install dependencies
Before running the project, make sure you have Node.js installed. Then, install the dependencies by running the command:
3️⃣Setup environment variables
Create a .env file at the root of the project and add your API token for TMDb:
Note: The token is injected into the app using Vite's environment variables. Make sure your variable is prefixed with VITE_.
4️⃣ Run in Development Mode
To start a development server, run the following command:
This will start the application on
http://localhost:5173
(or a different port if configured).To test this project without having to clone the repository, you can use this link.
🧪 Testing
To run the tests:
npm run test
To run in watch mode:
💡 Improvements