Sun Zheng Chew, 2025
This repository contains the starting code for a lab-based React assessment.
https://github.com/rbirney/react-exam
You are required to take the following steps in preparation for this exam.
-
Choose a folder where you want to save the repository and open a command prompt in this location
-
Clone the
react-examrepository using the following command:
git clone https://github.com/rbirney/react-exam.git-
Open the cloned project in Visual Studio Code
-
Create an .env file in the base folder.
-
Add your TMDB API key (the same one that you used in the React labs)
VITE_TMDB_KEY=YOUR_KEY_GOES_HERE
FAST_REFRESH=falseCreate a new public repository in your GitHub account called 'reactExam'.
Copy the URL of your new repository.
Open a new terminal in VS Code (in your react-exam folder) and type the following commands:
git remote remove origin
git remote add origin ...URL of your new repository...
git push origin mainVerify that your GitHub repository now contains the starter app.
In your VS Code terminal, run the following commands:
npm install
npm run devNow check that the Movie App runs correctly and is accessible from a browser on your machine.
Add your name and student number to the README.md file, as shown below:
# React In-class Exam, October 2025
Your Name, Student Number
...Push your changes to GitHub:
git add -A
git commit -m "Readme updated"
git push origin mainPlease ensure you have completed these steps before the lab-based exam and that you can push changes to your remote repository on GitHub.
Once you have created your GitHub repository you can submit it to Moodle (no need to wait until the day of the exam!)
You can submit it here: