Git Product home page Git Product logo

next-graphql-studio's Introduction

NextJs X GraphQL Studio

Screenshot from 2024-05-04 19-08-53

๐Ÿ› ๏ธ Installation Steps:

1. Clone this repository to your local machine.

2. Install the required node packages by executing the following command in your terminal:

npm install

3. Set up environments:

  • create a new file named .env.local in the root directory, same level with src directory, and populate it with these environment variables
NEXT_PUBLIC_GRAPHQL_ENDPOINT=https://odyrf5sb5ve7hlbyi2vu3uygju.appsync-api.ap-southeast-1.amazonaws.com/graphql
NEXT_PUBLIC_GRAPHQL_API_KEY=da2-fmfzezuo7jae3gzue64nhtt5m4

4. Start the development server using :

npm run dev

4. Access the application in your browser at :

http://localhost:3030

๐Ÿง Features

Here're some of the project's best features:

  • Project List Page:
    • Display a table with columns for project name and description.
    • Fetch project data from the GraphQL endpoint using a query. -Create Project Feature:
    • Place a "Create Project" button at the top left of the project table.
    • On button click, open a modal form to input the new project's name and description.
    • Submit the form data using a mutation to create a new project.
    • Update the UI to reflect the new project addition without a page reload.
  • Inline Edit Feature:
    • Make the project name in the table editable on click.
    • After editing, submit the updated name to the server using a mutation.
    • Reflect the updated project name in the UI immediately.
  • Delete Project Feature:
    • Add a delete icon/button in each row of the project table.
    • On clicking the delete button, show a confirmation dialog.
    • If confirmed, send a mutation to delete the project.
    • Remove the project from the UI after successful deletion.

๐Ÿ’ป Built with

Technologies used in the project:

  • ReactJs
  • NextJs
  • Typescript
  • GraphQL
  • Apollo
  • React Hook Form
  • Shadcn UI
  • Tailwind CSS
  • Zod

๐Ÿ—๏ธ Project structure

  • src/
    • components/: Contains React components for different parts of the application.
    • graphql/: Includes GraphQL queries, mutations and schemas.
    • types/: Includes types

next-graphql-studio's People

Contributors

thantheinthwin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.