Giter VIP home page Giter VIP logo

vue-apollo-graphql's Introduction

Vue 3 and GraphQL - GitHub Search

GitHub GraphQL API Demo

This GitHub search client was scaffolded via Vue CLI. Simply type a query into the search bar to retrieve a list of relevant repositories.

Using Vue 3's Composition API and the Vue Apollo (v4) library, a component's data requirements are defined alongside its lifecycle hook registrations and other functionality, all within a single setup method. With access to GitHub's GraphQL API, components can easily integrate with GitHub using flexible queries.

Visit the master branch of this repository for the final version of this application.

Project Setup

Install the dependencies.

$ npm install

Create a .env file in the root of the project directory. Add the VUE_APP_GITHUB_ACCESS_TOKEN environment variable to this file, and set it to a GitHub access token.

(.env)

VUE_APP_GITHUB_ACCESS_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Running in Development Environment

Run the application for local development:

$ npm run serve

Navigate to localhost:8080. You should see your application running. The application hot-reloads on all file changes (state changes are preserved).

Compilation and Minification for Production

Generate a build optimized for production:

$ npm run build

Linting Files

Lint files to statically analyze code for potential errors:

$ npm run lint

Customize Configuration

See configuration reference for more information.

vue-apollo-graphql's People

Contributors

kenchandev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.