Code Monkey home page Code Monkey logo

futureswap_tools's Introduction

Gatsby Apollo Netlify

Gatsby Starter Apollo Netlify

This project is an easy way to start developing fullstack apps with Gatsby and Apollo Server (using Netlify Lambda functions). For developing we use Netlify Dev to bring all of this magic to our local machine.

Requirements 🏁

Usage ⚙️

Create a new Gatsby project specifying this starter, navigate to it, and start Netlify Dev server:

# Use the Gatsby CLI to create a new project, specifying this starter.
gatsby new my-new-project https://github.com/piducancore/gatsby-starter-apollo-netlify

# Go to your new project’s directory.
cd my-new-project/

# Start your local Netlify Dev server
netlify dev

That's it. Your Netlify Dev server is running at http://localhost:8888!

Start by checking src/pages/index.js to see an example query using the Query component from react-apollo, and functions/graphql/graphql.js to start editing your Apollo Server.

You can find Apollo Server's GraphQL Playground at http://localhost:8888/.netlify/functions/graphql

Note: You'll also see a second link: http://localhost:8000. This is Gatsby's default dev server, and it won't have access to our Apollo Server (or any other serverless function) since Netlify Dev is doing all the proxying.

Deploy to Netlify 🚀

With the Netlify CLI you can create deployments directly from the command-line:

# Login with the Netlify CLI
netlify login

# Configure continuous deployment for a new or existing site
netlify init

# Create new deploy
netlify deploy

futureswap_tools's People

Contributors

gavinmcdermott avatar

Watchers

James Cloos 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.