rick-and-morty-api
potter-db
rick-and-morty-api | potter-db | |
---|---|---|
8 | 3 | |
957 | 89 | |
- | - | |
0.0 | 9.3 | |
12 months ago | 10 days ago | |
JavaScript | Ruby | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rick-and-morty-api
-
Implementing Infinite scroll in React apps
import { useEffect, useState } from "react"; import axios from "axios"; import "./App.css"; import InfiniteScroll from "react-infinite-scroll-component"; import CharacterCard from "./components/Card"; function App() { const [characters, setCharacters] = useState([]); const [page, setPage] = useState(1); const [hasMore, setHasMore] = useState(true); const [totalPages, setTotalPages] = useState(1); const fetchData = async () => { if (page == totalPages + 1) { setHasMore(false); return; } // <-----------------------------------------------> // waiting for 1 second before fetching data to show loading spinner, you can skip this await new Promise((resolve) => setTimeout(resolve, 1000)); // <-----------------------------------------------> const res = await axios.get( `https://rickandmortyapi.com/api/character?page=${page}` ); setCharacters((prevPosts) => [...prevPosts, ...res.data.results]); setTotalPages(res.data.info.pages); setPage((prevPage) => prevPage + 1); }; useEffect(() => { fetchData(); }, []); return (
Rick and Morty characters!h1> Loading...h4>} endMessage={
Yay! You have seen it allb> p> } > {/* Map over characters array and return JSX */} {characters.map((character, index) => ( ))} InfiniteScroll> div> ); } export default App;
-
Building a Modern Full-Stack MonoRepo Application: A Journey with GraphQL, NextJS, Bun, and AWS
This project was conceived as a coding challenge and a demonstration of integrating modern web technologies into a cohesive application. The core of this project involves leveraging GraphQL to interact with the open-source Rick and Morty API, a task I often set for potential hires.
-
How to Write a GraphQL Query
export const apolloClient = new ApolloClient({ uri: "https://rickandmortyapi.com/graphql", cache: new InMemoryCache({ typePolicies: { Query: { fields: { characters: { keyArgs: false, merge(existing: Characters, incoming: Characters) { return { ...incoming, results: [ ...(existing?.results || []), ...(incoming?.results || []), ], } satisfies Characters; }, }, }, }, }, }), });
-
CS50x Final Project
Hello, my fellow CS students! Are there any Rick & Morty fans here? Because I've just created an app called Portalpal for my final project. It's a fun little app designed to explore the Rick & Morty universe. With Portalpal, you can view, search, paginate, and filter characters. Additionally, you have the option to filter characters by episodes and locations. For the data, I utilized the rickandmorty API, which you can check out here: https://rickandmortyapi.com/. If you'd like to give it a try, here's the link to my app: https://portalpal.vercel.app/. I built it using React 18, and it took me about a month. I'm really proud of how it turned out! If you're interested, you can also find the source code for the app on my GitHub repository: https://github.com/kyawzinhtett/portalpal. Feel free to open an issue if you discover any errors.
- Where to get Free APIs to practice my web dev skills?
-
It's not much but it's mine. Rick and Morty info app. Feedback/code review welcome!
Just a small app consuming the Rick and Morty API showing some basic stats of each character such as last known location, species and what episode(s) they appear in.
-
How to upskill my API Testing.
Checkout https://rickandmortyapi.com and their https://rickandmortyapi.com/graphql
-
Does anybody know the API documentation tool used to build the Rick and Morty API?
Click the guys name in the footer. It’ll take you to his GitHub profile. There you can find the source code to the site and the API.
potter-db
-
I built an Harry Potter⚡ API, so you dont have to
Next I stole open sourced data from KostaSav and Daniel. And put them inside a folder called db inside project root.
-
[Potter DB] I made a Harry API with character, books, movies, potions and spells from the HP Universe
If you are interested: here’s the website and the GitHub Repo.
- Potter DB – An API with Data from the Harry Potter: Characters, Movies and More
What are some alternatives?
RickNMortyCompose - A Jetpack compose android app based on Rick and Morty Graphql
API Platform - Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
graphql-sequelize-generator - A Graphql API generator based on Sequelize.
searq.org - SearQ, the RSS search engine that is both speedy and free! SearQ offers a RESTful API that simplifies the search for data from RSS feeds. Finding what you need has never been easier with SearQ.
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
hp-api - A simple JSON-based API for getting information on Harry Potter characters.
graphql-query-example
potterhead-api - Welcome to the Harry Potter API! This API provides detailed information about popular characters, movies, books and spells ⚡
bifrost - The PsychonautWiki API.
theodinproject - Main Website for The Odin Project
React - The library for web and native user interfaces.
gamou - Grow Your Business with Gamou