annuhdo / medium-feed-graphql

πŸš€ Medium user's feed exposed as GraphQL API

Home Page:https://graphql-medium-gvahamywiv.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

medium-feed-graphql πŸš€

A GraphQL wrapper for a user's Medium feed. Hosted Deployment β–² GraphQL Playground

Features

  • Able to grab user and his or her latest posts.
  • Utilizes GraphQL with a single endpoint.
  • Data grabbed from Medium's RSS Feed.

Query

The main query Medium requires a username String! argument.

query {
  Medium(username: MEDIUM_USERNAME_STRING) {
    user {
      username
      name
      image
      link
    },
    posts {
      title
      link
      author
      published
      content
    }
  }
}

Installation

Initial setup

$ git clone https://github.com/annuhdo/medium-feed-graphql.git
$ cd medium-feed-graphql

$ yarn install

Start server locally

Server is going to be hosted on port 7778. This can be changed on server.js.

$ yarn start

πŸš€ Server is running on port: 7778

License

MIT -- I made this for my personal website but you may use this for whatever you would like! πŸ˜€

About

πŸš€ Medium user's feed exposed as GraphQL API

https://graphql-medium-gvahamywiv.now.sh/


Languages

Language:JavaScript 100.0%