Coder Social home page Coder Social logo

weparkerjr / graphql-article-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nwthomas/graphql-article-server

0.0 0.0 0.0 105 KB

The Express, GraphQL, and PostgreSQL server for Nathan Thomas' article

License: MIT License

JavaScript 100.00%

graphql-article-server's Introduction

GRAPHQL ARTICLE SERVER

This is the set of starter files for Nathan Thomas' GraphQL Article. Note that this server does not satisfactorily run on initial clone. You will need to follow along in my article to flesh it out.

GETTING STARTED

  • Fork or clone the repository

  • Add a .env file with the following conditions

    • Create a PORT variable with the port number you want to run your server on (defaults to 8000 if you don't set anything)
    • Implement a database instance of PostgreSQL somewhere such as Heroku and assign the URL for that cluster to DATABASE_URL in your .env file
  • Install all full dependencies with yarn or npm install including:

    • cors
    • dotenv
    • helmet
    • faker
    • graphql
    • graphql-playground-middleware-express
    • knex
    • pg
    • nodemon
    • jest
  • Migrate all tables to your PostgreSQL instance by using the command npx knex migrate:latest in the root directory

  • Run all seeds to populate dummy data in the database by using the command npx knex seed:run in the root directory

  • Run yarn server or npm run server to launch server

graphql-article-server's People

Contributors

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