Skip to content

web-dev-max/Next

Repository files navigation

Getting Started

First, run the development server:

node -v = 20v
# or
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Examples of queries

Apollo Server

http://localhost:3000/api/graphql

# Удаление пользователя

mutation {
  deleteUser(id: number) {
     message
  }
}

# Регистрация пользователя

mutation {
  registerUser(
    name: ""
    email: ""
    password: ""
    isAdmin: boolean
  ) {
     user {
      id
      name
      email
      isAdmin
    }
    token
  }
}

# Авторизация пользователя

mutation {
  loginUser(
    email: ""
    password: ""
  ) {
     user {
      id
      name
      email
      isAdmin
    }
    token
  }
}

About

Next and GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published