From d3e067c33ca54fdc413dc4141862547e36496518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Garc=C3=ADa=20Laverde?= Date: Sat, 12 Aug 2023 14:45:01 -0500 Subject: [PATCH] instructions to run frontend --- README.md | 21 +++++++++++++++++- frontend/src/features/movies/MovieReview.jsx | 23 ++++++++++---------- frontend/src/index.css | 22 +------------------ 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 340b6b9..e915a46 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,23 @@ Instructions to run the backend server - Test: Run the test suite running: ```npm run test``` -## Frontend [WIP] \ No newline at end of file +## Frontend [WIP] + +Tools used to implement the Frontend: +- React: Create multiple components, and reactive behaviour of them using hooks. +- Redux: Handles the global states in the navigation within the app. +- Yup: Helps to validate forms schemas. + +Instructions to run the frontend client + +- Enter into the frontend directory: + + cd frontend + +- Deploy on local machine. + + 1. Install the dependencies and devDependencies and to start the client in development environment, run: + + npm install + + npm run start \ No newline at end of file diff --git a/frontend/src/features/movies/MovieReview.jsx b/frontend/src/features/movies/MovieReview.jsx index bddf9dd..91f44e5 100644 --- a/frontend/src/features/movies/MovieReview.jsx +++ b/frontend/src/features/movies/MovieReview.jsx @@ -42,27 +42,28 @@ function MovieReview() {
{selectedMovie.title}
-
Release date: {new Date(selectedMovie.releaseDate).toLocaleDateString('en-US')}
+
Release date: {selectedMovie.releaseDate ? new Date(selectedMovie.releaseDate).toLocaleDateString('en-US') : 'NA'}
{selectedMovie.overview}
-

Rate the Movie

+

+
Rate the Movie
{errors.rating?.message}


- -