reactjs-graphql-image-upload Tailwind Templates

Reactjs Graphql Image Upload

demo project showcasing how to implement image uploads in a React application using TypeScript, Tailwind CSS, and GraphQL.

My github

React Image Upload with GraphQL

Node Version PNPM Version React Version Tailwind CSS Version

This is a demo project showcasing how to implement image uploads in a React application using TypeScript, Tailwind CSS, and GraphQL.

Features

  • Single Image Upload: Upload a single image with a GraphQL API.
  • Multiple Image Upload: Upload multiple images at once using the same GraphQL API.

Prerequisites

Before you begin, ensure you have the following installed:

Clone the repository:

git clone https://github.com/Amit091/reactjs-graphql-image-upload.git
cd reactjs-graphql-image-upload

Project setup

pnpm install
# or
npm install

Setup and run the project

  1. Ensure you have the GraphQL backend running.
  2. Update graphql types and interfaces
    pnpm codegen
    #or
    npm run codegen
    
  3. Start the development server
pnpm dev
#or
npm run dev
  1. Open http://localhost:5173 to view the project in the browser.
  2. You can now upload images to the GraphQL API.
  3. Screenshot My github

References

This project was developed along with NestJS GraphQL Image Upload project.

Stay in touch

Top categories

Loading Svelte Themes