Giter Club home page Giter Club logo

blog-test's Introduction

A simple blog manager

This repo contains the source code for a Grafbase project that manages a blog.

The project is on hold until we get auth working and I can work the code into a framework (NodeJS?).

The schema in grafbase/schema.graphql defines types defined for a user, a post, and a comment, all based on the Grafbase template at https://github.com/grafbase/grafbase/blob/main/templates/blog/grafbase/schema.graphql.

Code Examples

Initially there six code examples:

  • Create a user
  • List the users
  • Create a post
  • List the posts
  • Create a comment from a user on a post
  • List the comments

The same code examples are written in three programming languages in code-examples:

  • curl, with the code shown in code-examples/curl/README.md
  • JavaScript, with the code in code-examples/javascript/Create[user | post | comment].mjs and code-examples/List[users | posts | comments].mjs
  • Go(lang), with the code in code-examples/golang/create-[user | post | comment]/main.go and code-examples/list-[users | posts | comments]/main.go

See the README.md files in the relavent sub-directories for further information on these code examples.

blog-test's People

Contributors

dougatgrafbase avatar

Watchers

 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.