List of films with the word "love" in the title! 🎥
This project is a single-page application (SPA) that demonstrates how to create a list of cards with images and information fetched from an endpoint. The application stores the fetched data in a store, allowing for easy access and manipulation.
- Card List: The application displays a list of cards, each containing an image and some information fetched from an endpoint.
- Like Icon: Each card has an icon that, when clicked, adds a like to the card. The icon changes color to indicate whether the card is liked.
- Delete Icon: Each card also has a delete icon that, when clicked, removes the card from the list.
- Filter Button: A filter button at the top of the page allows users to filter the list to show only liked cards.
- Card Details Page: Clicking on a card takes the user to a details page for that card. The details page includes a full text version of the card's content + some extra and a button to return to the list.
- React: A JavaScript library for building user interfaces.
- Redux: A library for managing application state.
- Material UI: A UI framework for React.
- TypeScript: A statically typed variant of JavaScript that enables error detection during development.
- Prettier: A code formatter for JavaScript.
Before you begin, make sure you have the following tools installed:
- git (for cloning the repository)
- Node.js (to run the project)
- Clone the repository:
git clone https://github.com/LedyBacer/spa-card-testjob.git
- Go to the project folder:
cd spa-card-testjob
- Install dependencies:
npm install
- Copy env file:
cp .env.example .env
- Change backend URL and api key inside .env:
nano .env
- Run the project:
npm run dev
After completing these steps, your project will be accessible at localhost in your web browser.
To deploy the project on a server, follow these steps:
- Build the project for production:
npm run build
This will create a build
folder with files optimized for production.
- Deploy the contents of the build folder on your web server.
For deployment, you can use the services of any hosting provider that supports static sites. Examples include Netlify, Vercel, GitHub Pages, and others.