Hello 👋, Welcome to my project of Movie Library which was bootstrapped with Create React App, using the TypeScript template. This web app gets user's, movie details based on Popular, Top Rated, Upcoming and any Genre. User's can also search any movie details based on its name of any language. Most of the movie details include youtube trailer link. As pagination is available one can get more number of movie details.
Tech stack used in this project -
- JavaScript Library: React & TypeScript
- Navigation: React Router
- State management: Redux
- Styling: React-Bootstrap
This is the first time I've used TypeScript with React. Though it was little bit tough at first, I come to know how TypeScript is doing all the heavylifting for us before releasing the website into production.
- One should have TMDB API key ready, if you dont know how to get one please refer TMDB
Finally one should have file named .env with the TMDB API key and base url of endpoint setup as follows
//.env
REACT_APP_API_KEY = [TMDB API key]
REACT_APP_BASE_URL = https://api.themoviedb.org/3
- Clone the project using the command
git clone https://github.com/vtejaeta/Movie-library-TypeScript.git
- Move into the file directory you wish to run using
cd {folder_name}
. - Use the following command
npm install
oryarn
to install the dependencies. - Now you can run
npm run start
oryarn start
to run the app in the development mode. It can be viewed in browser athttp:localhost:3000
- For bundling one can use
npm run build
oryarn build
which optimises build for best performance
For questions related to using the project, please reachout to me through