Giter Site home page Giter Site logo

andrewjbateman / next-fauna-data Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 254 KB

:clipboard: A Next.js Guestbook app with Fauna backend using GraphQL, boilerplate code from Vercel

Home Page: https://nextjs-fauna-puce.vercel.app/

JavaScript 100.00%
nextjs faunadb fauna vercel boilerplate-application vercel-deployment tailwindcss guestbook

next-fauna-data's Introduction

โšก Next Fauna Data

  • A Next.js Guestbook app with Fauna backend using GraphQL, boilerplate code from Vercel
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

๐Ÿ“„ Table of contents

๐Ÿ“š General Info

๐Ÿ“ท Screenshots

Example screenshot Example screenshot

๐Ÿ“ถ Technologies

๐Ÿ’พ Setup

  • npm run dev runs the app in the development mode. Open http://localhost:3000 to view it in the browser. Note: requires Fauna API key
  • npm run build builds the app for production to the build folder. Note: requests Fauna API key
  • npm run start to run the built app.

๐Ÿ’ป Code Examples - taken from Vercel boilerplate code

  • lib/fauna.js mutation function to create a new guestbook entry
export const createGuestbookEntry = (newEntry) => {
  const mutation = gql`
    mutation CreateGuestbookEntry($input: GuestbookEntryInput!) {
      createGuestbookEntry(data: $input) {
        _id
        _ts
        name
        message
        createdAt
      }
    }
  `

  return graphQLClient.request(mutation, { input: newEntry })
}

๐Ÿ“‹ Status & To-Do List

  • Status: Working. Deployed to Vercel
  • To-Do: Add extra fields and a user image/icon. Need Fauna API key to run dev. server

๐Ÿ‘ Inspiration

๐Ÿ“ License

  • N/A

โœ‰๏ธ Contact

next-fauna-data's People

Contributors

andrewjbateman avatar

Stargazers

 avatar

Watchers

 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.