fake-store-api
rick-and-morty-api-site
fake-store-api | rick-and-morty-api-site | |
---|---|---|
45 | 26 | |
1,918 | 61 | |
- | - | |
0.0 | 0.0 | |
22 days ago | 8 months ago | |
EJS | JavaScript | |
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.
fake-store-api
- Fetch Data Using React Router Dom v6
-
Learn Route Parameters in Angular with Example
import { inject, Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { toSignal } from '@angular/core/rxjs-interop'; export type Product = { id: string; title: string; description: string; image: string; price: string; }; @Injectable({ providedIn: 'root', }) export class ProductsService { readonly http = inject(HttpClient); readonly API = 'https://fakestoreapi.com'; $products = toSignal(this.http.get>(`${this.API}/products`)); }
-
Learn Next.js Server Side Rendering by building your own implementation
export const notNextServerSideProps = async (fetch) => { const data = await fetch('https://fakestoreapi.com/products') .then(res => res.json()) .then(json => json); return { props: { title: 'All Products', products: data } } }
-
Best way to populate personal e-commerce project?
This is api for fake e-commerce data https://fakestoreapi.com/
-
Kako napraviti dobar shop u js
Ne treba da kreces sa backom i da pravis nista sam jos uvek, treba ti neki REST API sa dummy podacima da konzumiras i prikazujes na svom frontu. Evo ti jedan
-
Improve Data Fetching in Next.js Applications through SWR
import useSWR from "swr"; import Image from "next/image"; const fetcher = async (url) => { const response = await fetch(url); if (!response.ok) { throw new Error("An error occurred while fetching the data."); } return response.json(); }; const ProductDetails = ({ id }) => { const { data: product, error, isLoading, } = useSWR(`https://fakestoreapi.com/products/${id}`, fetcher); if (isLoading) { return
Loading...div>; } if (error) { returnError: {error.message}div>; } return ({product.title}h1>
div>{product.category}p>
${product.price}p>
{product.description}p> div> div> div> ); }; export async function getServerSideProps(context) { const { id } = context.query; return { props: { id, }, }; } export default ProductDetails;
-
Flutter pagination ft. Bloc
{ "products": [ { "id": 1, "title": "Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops", "price": 109.95, "description": "Your perfect pack for everyday use and walks in the forest. Stash your laptop (up to 15 inches) in the padded sleeve, your everyday", "category": "men's clothing", "image": "https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg", "rating": { "rate": 3.9, "count": 120 } }, { "id": 2, "title": "Mens Casual Premium Slim Fit T-Shirts ", "price": 22.3, "description": "Slim-fitting style, contrast raglan long sleeve, three-button henley placket, light weight & soft fabric for breathable and comfortable wearing. And Solid stitched shirts with round neck made for durability and a great fit for casual fashion wear and diehard baseball fans. The Henley style round neckline includes a three-button placket.", "category": "men's clothing", "image": "https://fakestoreapi.com/img/71-3HjGNDUL._AC_SY879._SX._UX._SY._UY_.jpg", "rating": { "rate": 4.1, "count": 259 } }, { "id": 3, "title": "Mens Cotton Jacket", "price": 55.99, "description": "great outerwear jackets for Spring/Autumn/Winter, suitable for many occasions, such as working, hiking, camping, mountain/rock climbing, cycling, traveling or other outdoors. Good gift choice for you or your family member. A warm hearted love to Father, husband or son in this thanksgiving or Christmas Day.", "category": "men's clothing", "image": "https://fakestoreapi.com/img/71li-ujtlUL._AC_UX679_.jpg", "rating": { "rate": 4.7, "count": 500 } }, { "id": 4, "title": "Mens Casual Slim Fit", "price": 15.99, "description": "The color could be slightly different between on the screen and in practice. / Please note that body builds vary by person, therefore, detailed size information should be reviewed below on the product description.", "category": "men's clothing", "image": "https://fakestoreapi.com/img/71YXzeOuslL._AC_UY879_.jpg", "rating": { "rate": 2.1, "count": 430 } }, { "id": 5, "title": "John Hardy Women's Legends Naga Gold & Silver Dragon Station Chain Bracelet", "price": 695, "description": "From our Legends Collection, the Naga was inspired by the mythical water dragon that protects the ocean's pearl. Wear facing inward to be bestowed with love and abundance, or outward for protection.", "category": "jewelery", "image": "https://fakestoreapi.com/img/71pWzhdJNwL._AC_UL640_QL65_ML3_.jpg", "rating": { "rate": 4.6, "count": 400 } } ], "current_page": 1, "reach_max": false }
-
Request works on Chrome/Firefox but not using curl/Python requests
I'm working on a side project using fakestoreapi.com to populate data.
-
Good API for a fake e-commerce site?
I am wanting to build a fake e-commerce store as a portfolio project and I was wondering if there are any good ones. Only one I know of is https://fakestoreapi.com/. Any other recommendations would be greatly appreciated!
-
5 APIs every front-end developer should know.
Learn more about the API on their website.
rick-and-morty-api-site
-
Does anybody know the API documentation tool used to build the Rick and Morty API?
Specifically looks like hand-rolled docs using Gatsby https://github.com/afuh/rick-and-morty-api-site/tree/fd7a1c1a32e42ac6be7c6ffaeea8d1b29c05d2da/src
- Como usar Fetch API para buscar dados de uma API
- Decidi aprender programação sozinho
-
Should I use ServerSideProps or StaticProps in this case?
The external API that I'm using is the Rick and Morty API. I know that there is a freeCodeCamp tutorial using this same API and teaching Next, but I want to dive a little bit deeper and understand some topics that the article does not cover.
-
Introduction to React Suspense
import React, { useEffect, useState, useTransition } from 'react'; import { Link } from 'react-router-dom'; import Loader from '../Components/Loader'; import { Pagination } from '../Components/Pagination'; function Home() { const [data, setData] = useState({}); const [isLoading, startTransition] = useTransition(); const fetchCharacters = async (page?: number) => { const response = await fetch( `https://rickandmortyapi.com/api/character?page=${page}` ); const parsedData = await response.json(); startTransition(() => { if (response.ok) setData(parsedData); }); }; useEffect(() => { fetchCharacters(1); }, []); const { results, info } = data; const onPageChange = (pageNumber: number) => { fetchCharacters(pageNumber); window.scrollTo({ top: 0, behavior: 'smooth', }); }; return ( Rick And Morty {!isLoading ? ( <> {results?.map((datas: any) => { const { id, name, species, gender, origin, location, image, episode, } = datas; return ( {name ? Name: : null} {species ? Species: : null} {gender ? Gender: : null} {origin.name ? Origin: : null} {location.name ? Location: : null} {name ? {name} : null} {species ? {species} : null} {gender ? {gender} : null} {origin.name ? {origin.name} : null} {location.name ? {location.name} : null} ); })} {info ? ( ) : null} ) : ( )} ); } export default Home;
-
Create a custom debounce Hook in React
export async function getCharacter(value) { const data = await fetch( `https://rickandmortyapi.com/api/character/?name=${value}` ) const response = await data.json() if (response === undefined || response.error) { throw new Error(`HTTP error! status: ${response.error}`); } return response }
-
Senior developers, how did you start and how to improve?
There are so many APIs you can use to write a client on: https://rickandmortyapi.com/ as an example. If you want to stick to using a cli app you can try use a TUI library to make it more slick. For images you can convert them to ascii art
-
Is there the Sopranos API?
I wanted to check if there is something similar to this . Just to practice react query and maybe expand it a bit. Not to use it for portfolio or try to get a job with it. While reading about react query I thought it would be good to practice it with sopranos api
-
Nuxt 3, Apollo GraphQL, TailwindCSS Crash Course
Rick and Morty API -> https://rickandmortyapi.com/
What are some alternatives?
quotable - Random Quotes API
gatsby-starter-minimal-blog - Typography driven, feature-rich blogging theme with minimal aesthetics. Includes tags/categories support and extensive features for code blocks such as live preview, line numbers, and line highlighting.
Faker
gatsby-starter-lumen - A constantly evolving and thoughtful architecture for creating static blogs with Gatsby.
Faker.js - What really happened with Aaron Swartz?
react-search-bar - React Live Search Bar. Search the Rick & Morty Api. This is a project to my Youtube video.
vercel - Develop. Preview. Ship.
Gatsby - The best React-based framework with performance, scalability and security built in.
public-apis - A collective list of free APIs
Reactive-Resume - A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Next.js - The React Framework
tailwindcss - Tailwind CSS module for Nuxt