This website was built with the Lord of the Rings API.
Steps to install and run the project:
-
Clone the project
git clone https://github.com/diaslucia/lotr.git
-
Open your current directory project
cd yourProjectDirectory
-
Install the libraries
npm install
-
Create an account in https://the-one-api.dev/ to get an API KEY
-
Create an
.env
file to enter your API KEYVITE_API_KEY = yourAPIKEY;
-
Ejecute the app (and close it with Ctrl + C)
npm run dev
The structure of the files is:
- assets: to store images.
- components: to store all componentes.
- layouts: to store basic structure layout.
- utils: to store sass global styles.
src/
β£ assets/
β β images/
β£ components/
β β£ CharactersContainer/
β β£ Footer/
β β£ Home/
β β£ MoviesContainer/
β β£ NavBar/
β β£ Spinner/
β£ hooks/
β β useWindowSize/
β£ layout/
β β£ Header/
β β£ Main/
β£ utils/
β β sass/
Framer-motion: to animate components.
React Router Dom: To manage navigations and pages.
React Icons: to display icons.
React Paginate: to use paginations in the characters page.
React Spinners: to display spinners while we wait for the API response.
(to Top)