{"id":24838222,"url":"https://github.com/remojs/rickverse-frontend","last_synced_at":"2026-04-08T11:32:42.246Z","repository":{"id":185683259,"uuid":"673934223","full_name":"Remojs/Rickverse-Frontend","owner":"Remojs","description":"🎱 Frontend repository of the rick and morty website","archived":false,"fork":false,"pushed_at":"2026-03-06T00:29:40.000Z","size":1702,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-06T01:59:41.077Z","etag":null,"topics":["css","javascript","react","redux","rickandmortyapi"],"latest_commit_sha":null,"homepage":"https://rickverse.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Remojs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-02T18:54:08.000Z","updated_at":"2026-03-06T00:29:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fa0de78-d85c-4615-a396-23ed7db7fe15","html_url":"https://github.com/Remojs/Rickverse-Frontend","commit_stats":null,"previous_names":["remojs/rickverse-frontend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Remojs/Rickverse-Frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Remojs%2FRickverse-Frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Remojs%2FRickverse-Frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Remojs%2FRickverse-Frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Remojs%2FRickverse-Frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Remojs","download_url":"https://codeload.github.com/Remojs/Rickverse-Frontend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Remojs%2FRickverse-Frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","javascript","react","redux","rickandmortyapi"],"created_at":"2025-01-31T06:09:48.555Z","updated_at":"2026-04-08T11:32:42.225Z","avatar_url":"https://github.com/Remojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rickverse — Frontend\n\nSingle-page application built with React that consumes both the public [Rick and Morty API](https://rickandmortyapi.com/) and the Rickverse backend API. Requires the backend to be running or available at the configured URL.\n\n---\n\n## Tech Stack\n\n| Technology | Version | Purpose |\n|---|---|---|\n| React | 17 | UI library |\n| React Router DOM | 6 | Client-side routing |\n| Redux | 4 | Global state management |\n| Redux Thunk | 2 | Async action middleware |\n| Axios | 1 | HTTP requests |\n| React Hot Toast | 2 | Toast notifications |\n\n---\n\n## Project Structure\n\n```\nsrc/\n├── App.js                  # Root component — routing, login state, search logic\n├── index.js                # Entry point, Redux Provider, BrowserRouter\n├── redux/\n│   ├── store.js            # Redux store with thunk middleware\n│   ├── reducer.js          # Handles favorites, filter, order, species actions\n│   └── actions.js          # Thunk actions: addFav, removeFav, filterCards, orderCards, speciesCards\n└── components/\n    ├── Form/               # Login form with client-side validation\n    ├── Navbar/             # Nav bar + SearchBar (search by character ID)\n    ├── Cards/              # Home grid of searched characters\n    ├── Detail/             # Single character detail view\n    ├── Favorites/          # Favorites list with filter/sort controls\n    ├── AllCharacters/      # Paginated full character gallery\n    └── About/              # About page\n```\n\n---\n\n## Installation \u0026 Setup\n\n**Prerequisites:** Node.js 16+, the Rickverse backend running (see `/Server`).\n\n```bash\n# 1. Install dependencies\ncd Client\nnpm install\n\n# 2. Start development server (port 3000)\nnpm start\n```\n\nThe app points to the backend at `https://rickverse-backend.onrender.com` by default. To use a local backend, replace that URL in `src/App.js` and `src/redux/actions.js` with `http://localhost:3001`.\n\n---\n\n## Available Scripts\n\n| Script | Description |\n|---|---|\n| `npm start` | Starts the dev server on port 3000 |\n| `npm run build` | Creates an optimized production build in `/build` |\n| `npm test` | Runs the test suite with Jest |\n\n---\n\n## Features\n\n- **Login** — Authenticates against the backend with email and password. Client-side validation enforces valid email format and a 6–10 character password containing at least one number.\n- **Character search** — Search any character by numeric ID from the Rick and Morty API. Prevents duplicate additions with toast feedback.\n- **Character detail** — Full detail view for each character, including status, species, origin, location, gender, type, and episode list.\n- **All Characters gallery** — Browse the full character catalogue with server-side pagination (previous / next).\n- **Favorites** — Add or remove characters from a persisted favorites list (stored in the backend). Supports filtering by gender or species and sorting by ID ascending/descending.\n- **Dark mode** — Toggle between light and dark themes across all views.\n\n---\n\n## State Management\n\nRedux manages two pieces of state:\n\n| Key | Description |\n|---|---|\n| `myFavorites` | Active list (after filters/sort are applied) |\n| `allCharactersFav` | Source-of-truth copy used to restore state after filters are cleared |\n\nActions that mutate favorites (`ADD_FAV`, `REMOVE_FAV`) sync with the backend and replace both keys. Filter and order actions operate only on `myFavorites` without hitting the network.\n\n---\n\n## Credentials (demo)\n\n```\nEmail:    Thiagozambonini24@gmail.com\nPassword: Thiago123\n```\n\n---\n\n## Links\n\n- [Rick and Morty API](https://rickandmortyapi.com/)\n- [LinkedIn — Thiago Zambonini](https://www.linkedin.com/in/thiago-zambonini-2a279a239/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremojs%2Frickverse-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremojs%2Frickverse-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremojs%2Frickverse-frontend/lists"}