GithubHelp home page GithubHelp logo

githunt-api's Introduction

GitHunt

The Apollo Server backend shared by all Apollo client example apps.

Get on Slack Build Status

Demonstrates:

  1. GraphQL schema, resolvers, models, and connectors to read from two different data sources, GitHub REST API and SQL
  2. Web server with authentication and basic authorization using Express, Passport, and Apollo Server

Please submit a pull request if you see anything that can be improved!

Running the server

1. Install Node/npm

Make sure you have Node.js 4 or newer installed.

2. Clone and install dependencies

git clone https://github.com/apollostack/GitHunt.git
cd GitHunt
npm install

3. Run Migrations

Set up the SQLite database and run migrations/seed data with the following commands:

npm run migrate
npm run seed

4. Get GitHub API keys

Github OAuth

On the following page, grab:

  • Client ID
  • Client Secret

OAuth Key

5. Add Environment Variables

Set your Client ID and Client Secret Environment variables:

export GITHUB_CLIENT_ID="your Client ID"
export GITHUB_CLIENT_SECRET="your Client Secret"

Or you can use dotenv.

cp .env.default .env and edit with your Github keys.

6. Run the app

npm start

githunt-api's People

Contributors

abhiaiyer91 avatar amandajliu avatar dburles avatar delgermurun avatar grigio avatar helfer avatar jboothe avatar martijnwalraven avatar michaltakac avatar poincare avatar pradel avatar slava avatar timmikeladze avatar tychota avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.